mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-25 03:41:08 -07:00
Apply suggestions from code review
Typing suggestions by Jaime CURA-7473 Co-authored-by: Jaime van Kessel <nallath@gmail.com>
This commit is contained in:
parent
c815b098d4
commit
8e62a6d6d7
1 changed files with 2 additions and 2 deletions
|
|
@ -146,7 +146,7 @@ class Account(QObject):
|
||||||
if not self._update_timer.isActive():
|
if not self._update_timer.isActive():
|
||||||
self._update_timer.start()
|
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
|
""" 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
|
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()
|
self._sync()
|
||||||
|
|
||||||
@pyqtSlot()
|
@pyqtSlot()
|
||||||
def onUpdatePackagesClicked(self):
|
def onUpdatePackagesClicked(self) -> None:
|
||||||
if self._update_packages_action is not None:
|
if self._update_packages_action is not None:
|
||||||
self._update_packages_action()
|
self._update_packages_action()
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue