Small aesthetic code changes

CURA-7180 keyring storage
This commit is contained in:
Jelle Spijker 2021-03-17 09:30:31 +01:00
parent c462b62edc
commit 387fc36dc6
No known key found for this signature in database
GPG Key ID: 6662DC033BE6B99A
2 changed files with 1 additions and 3 deletions

View File

@ -52,7 +52,6 @@ class AuthorizationService:
self.onAuthStateChanged.connect(self._authChanged) self.onAuthStateChanged.connect(self._authChanged)
def _authChanged(self, logged_in): def _authChanged(self, logged_in):
if logged_in and self._unable_to_get_data_message is not None: if logged_in and self._unable_to_get_data_message is not None:
self._unable_to_get_data_message.hide() self._unable_to_get_data_message.hide()
@ -230,7 +229,6 @@ class AuthorizationService:
return return
try: try:
preferences_data = json.loads(self._preferences.getValue(self._settings.AUTH_DATA_PREFERENCE_KEY)) preferences_data = json.loads(self._preferences.getValue(self._settings.AUTH_DATA_PREFERENCE_KEY))
if preferences_data: if preferences_data:
self._auth_data = AuthenticationResponse(**preferences_data) self._auth_data = AuthenticationResponse(**preferences_data)
# Also check if we can actually get the user profile information. # Also check if we can actually get the user profile information.

View File

@ -1,4 +1,4 @@
# Copyright (c) 2020 Ultimaker B.V. # Copyright (c) 2021 Ultimaker B.V.
# Cura is released under the terms of the LGPLv3 or higher. # Cura is released under the terms of the LGPLv3 or higher.
from typing import Optional, Dict, Any, List, Union from typing import Optional, Dict, Any, List, Union
from copy import deepcopy from copy import deepcopy