Merge branch 'backend_manual' into 'backend_uu'

增加延迟

See merge request kylin-desktop/update-manager-group/kylin-system-updater!438
This commit is contained in:
wangsong 2022-06-14 09:14:16 +00:00
commit 83f2daedab
1 changed files with 1 additions and 1 deletions

View File

@ -73,7 +73,7 @@ class UpdateManagerDbusController(dbus.service.Object):
self.UpdateDetectStatusChanged(10,_("Updating Source Template"))
obj = self.bus.get_object('com.kylin.software.properties', '/com/kylin/software/properties')
interface = dbus.Interface(obj, dbus_interface='com.kylin.software.properties.interface')
interface.updateSourceTemplate(timeout=1,reply_handler=self._update_important_reply,error_handler=self._update_important_error)
interface.updateSourceTemplate(timeout=20,reply_handler=self._update_important_reply,error_handler=self._update_important_error)
def is_reboot_required(self):
"""If a reboot is required to get all changes into effect."""