Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/cura/API
diff options
context:
space:
mode:
authorJaime van Kessel <nallath@gmail.com>2021-07-27 12:54:43 +0300
committerJaime van Kessel <nallath@gmail.com>2021-07-27 12:54:43 +0300
commit900db57f0f21c27e8ccd5a23671f0cd7dbf6b9e3 (patch)
tree52a745fb4ae86e061e7dab95ec1e5b34a4efefa3 /cura/API
parentf11079adcf1b6bc8e523446c1ff30b647fcb4baa (diff)
Update messages to use the message_types
CURA-8418
Diffstat (limited to 'cura/API')
-rw-r--r--cura/API/Account.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/cura/API/Account.py b/cura/API/Account.py
index 2e48a040ad..59ac5381f3 100644
--- a/cura/API/Account.py
+++ b/cura/API/Account.py
@@ -178,7 +178,9 @@ class Account(QObject):
if self._error_message:
self._error_message.hide()
Logger.log("w", "Failed to login: %s", error_message)
- self._error_message = Message(error_message, title = i18n_catalog.i18nc("@info:title", "Login failed"))
+ self._error_message = Message(error_message,
+ title = i18n_catalog.i18nc("@info:title", "Login failed"),
+ message_type = Message.MessageType.ERROR)
self._error_message.show()
self._logged_in = False
self.loginStateChanged.emit(False)