mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-10 16:27:51 -06:00
Rename _loginStateChanged for consistency
CURA-7251
This commit is contained in:
parent
cf689ee3b0
commit
7e2177a8cd
1 changed files with 3 additions and 3 deletions
|
@ -37,11 +37,11 @@ class CloudPackageChecker(QObject):
|
||||||
def _onAppInitialized(self) -> None:
|
def _onAppInitialized(self) -> None:
|
||||||
self._package_manager = self._application.getPackageManager()
|
self._package_manager = self._application.getPackageManager()
|
||||||
# initial check
|
# initial check
|
||||||
self._loginStateChanged()
|
self._onLoginStateChanged()
|
||||||
# check again whenever the login state changes
|
# check again whenever the login state changes
|
||||||
self._application.getCuraAPI().account.loginStateChanged.connect(self._loginStateChanged)
|
self._application.getCuraAPI().account.loginStateChanged.connect(self._onLoginStateChanged)
|
||||||
|
|
||||||
def _loginStateChanged(self) -> None:
|
def _onLoginStateChanged(self) -> None:
|
||||||
if self._application.getCuraAPI().account.isLoggedIn:
|
if self._application.getCuraAPI().account.isLoggedIn:
|
||||||
self._getUserSubscribedPackages()
|
self._getUserSubscribedPackages()
|
||||||
elif self._message is not None:
|
elif self._message is not None:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue