mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 19:59:12 +08:00
Merge remote-tracking branch 'origin/CURA-7473_account_pending_update_button' into CURA-7473_account_pending_update_button
This commit is contained in:
commit
20f9d4c806
@ -146,7 +146,7 @@ class Account(QObject):
|
||||
if not self._update_timer.isActive():
|
||||
self._update_timer.start()
|
||||
|
||||
def setUpdatePackagesAction(self, action: Callable):
|
||||
def setUpdatePackagesAction(self, action: Callable) -> None:
|
||||
""" Set the callback which will be invoked when the user clicks the update packages button
|
||||
|
||||
Should be invoked after your service sets the sync state to SYNCING and before setting the
|
||||
@ -282,7 +282,7 @@ class Account(QObject):
|
||||
self._sync()
|
||||
|
||||
@pyqtSlot()
|
||||
def onUpdatePackagesClicked(self):
|
||||
def onUpdatePackagesClicked(self) -> None:
|
||||
if self._update_packages_action is not None:
|
||||
self._update_packages_action()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user