mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-01 22:00:37 +08:00
Rename _loginStateChanged for consistency
CURA-7251
This commit is contained in:
parent
cf689ee3b0
commit
7e2177a8cd
@ -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…
x
Reference in New Issue
Block a user