mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 00:05:57 +08:00
Don't look at the timer
This commit is contained in:
parent
373c953dbf
commit
2af33738d1
@ -58,10 +58,13 @@ class CloudOutputDeviceManager:
|
||||
|
||||
# Called when the uses logs in or out
|
||||
def _onLoginStateChanged(self) -> None:
|
||||
if self._account.isLoggedIn and not self._update_timer.isActive():
|
||||
self._update_timer.start()
|
||||
if self._account.isLoggedIn:
|
||||
if not self._update_timer.isActive():
|
||||
self._update_timer.start()
|
||||
else:
|
||||
self._update_timer.stop()
|
||||
if self._update_timer.isActive():
|
||||
self._update_timer.stop()
|
||||
|
||||
# Notify that all clusters have disappeared
|
||||
self._onGetRemoteClustersFinished([])
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user