add error symbol to messages, bigger window with dependencies error

This commit is contained in:
KatKatKateryna
2023-10-30 13:12:04 +00:00
parent 65a1f4730c
commit 2e1afa7f9c
2 changed files with 5 additions and 3 deletions
+4 -2
View File
@@ -8,9 +8,11 @@ def logToUser(
msg: str, func=None, level: int = 2, plugin=None, url="", blue=False, report=False
):
msg = str(msg)
dockwidget = plugin
dockwidget = plugin
try:
if url == "" and blue is False: # only for info messages
if (
url == "" and blue is False
) or level == 2: # only for info messages or anything with error
msg = addLevelSymbol(msg, level)
if func is not None:
msg += "::" + str(func)
+1 -1
View File
@@ -28,7 +28,7 @@ class DependenciesUpgradeDialog(QtWidgets.QWidget, FORM_CLASS):
def runAllSetup(self):
self.setWindowTitle("Upgrade Python dependencies (Speckle)")
self.setMinimumWidth(900)
self.setMinimumHeight(400)
self.setMinimumHeight(600)
self.report_label.setWordWrap(True)
self.btn_cancel.clicked.connect(self.onOkClicked)
self.btn_upgrade.clicked.connect(self.upgradeDependencies)