Merge pull request #10198 from Ultimaker/CURA-8418_update_messages_with_new_types

Update messages to use the message_types
This commit is contained in:
Jelle Spijker 2021-07-28 11:36:49 +02:00 committed by GitHub
commit e845462e5d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
31 changed files with 183 additions and 90 deletions

View file

@ -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)