mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-08 23:46:22 -06:00
Refactor refresh backups call to use HttpRequestManager
This commit is contained in:
parent
77590ad0e2
commit
86fb0383de
2 changed files with 24 additions and 25 deletions
|
@ -133,7 +133,10 @@ class DrivePluginExtension(QObject, Extension):
|
|||
|
||||
@pyqtSlot(name = "refreshBackups")
|
||||
def refreshBackups(self) -> None:
|
||||
self._backups = self._drive_api_service.getBackups()
|
||||
self._drive_api_service.getBackups(self._backupsChangedCallback)
|
||||
|
||||
def _backupsChangedCallback(self, backups):
|
||||
self.backups = backups
|
||||
self.backupsChanged.emit()
|
||||
|
||||
@pyqtProperty(bool, notify = restoringStateChanged)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue