Moved loading of the authentication to the account

CURA-5744
This commit is contained in:
Jaime van Kessel 2018-09-27 11:37:22 +02:00
parent cf6d3b9289
commit 506ec5109d
2 changed files with 2 additions and 3 deletions

View file

@ -44,7 +44,7 @@ class Account(QObject):
)
self._authorization_service = AuthorizationService(Application.getInstance().getPreferences(), self._oauth_settings)
self._authorization_service.loadAuthDataFromPreferences()
self._authorization_service.onAuthStateChanged.connect(self._onLoginStateChanged)
self._authorization_service.onAuthenticationError.connect(self._onLoginStateChanged)