From 387fc36dc6b77c516aa33d2ee6c94df42dbc5043 Mon Sep 17 00:00:00 2001 From: Jelle Spijker Date: Wed, 17 Mar 2021 09:30:31 +0100 Subject: [PATCH] Small aesthetic code changes CURA-7180 keyring storage --- cura/OAuth2/AuthorizationService.py | 2 -- cura/OAuth2/Models.py | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/cura/OAuth2/AuthorizationService.py b/cura/OAuth2/AuthorizationService.py index 68c0db78b6..da654b52bb 100644 --- a/cura/OAuth2/AuthorizationService.py +++ b/cura/OAuth2/AuthorizationService.py @@ -52,7 +52,6 @@ class AuthorizationService: self.onAuthStateChanged.connect(self._authChanged) - def _authChanged(self, logged_in): if logged_in and self._unable_to_get_data_message is not None: self._unable_to_get_data_message.hide() @@ -230,7 +229,6 @@ class AuthorizationService: return try: preferences_data = json.loads(self._preferences.getValue(self._settings.AUTH_DATA_PREFERENCE_KEY)) - if preferences_data: self._auth_data = AuthenticationResponse(**preferences_data) # Also check if we can actually get the user profile information. diff --git a/cura/OAuth2/Models.py b/cura/OAuth2/Models.py index 9538c95af4..4c84872a09 100644 --- a/cura/OAuth2/Models.py +++ b/cura/OAuth2/Models.py @@ -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. from typing import Optional, Dict, Any, List, Union from copy import deepcopy