Refactor refresh backups call to use HttpRequestManager

This commit is contained in:
Nino van Hooff 2020-02-28 14:01:11 +01:00
parent 77590ad0e2
commit 86fb0383de
2 changed files with 24 additions and 25 deletions

View file

@ -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)