Fixed bug in Global Settings

Incorrect handling of Check dom0 updates being set to false.

fixes QubesOS/qubes-issues#4988
This commit is contained in:
Marta Marczykowska-Górecka 2019-04-11 22:58:49 +02:00
parent d340a62d62
commit b9316bcd62
No known key found for this signature in database
GPG Key ID: 9A752C30B26FD04B

View File

@ -239,8 +239,8 @@ class GlobalSettingsWindow(ui_globalsettingsdlg.Ui_GlobalSettings,
self.dom0_updates_file_path = '/var/lib/qubes/updates/disable-updates'
try:
self.updates_dom0_val = self.qvm_collection.domains[
'dom0'].features['service.qubes-update-check']
self.updates_dom0_val = bool(self.qvm_collection.domains[
'dom0'].features['service.qubes-update-check'])
except KeyError:
self.updates_dom0_val =\
not os.path.isfile(self.dom0_updates_file_path)