Skip to content

Commit

Permalink
Fix broken VM settings for a VM with temporary unlocked FW
Browse files Browse the repository at this point in the history
  • Loading branch information
marmarta committed Dec 13, 2023
1 parent 2cafcd8 commit 6844de8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions qubesmanager/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -1461,9 +1461,9 @@ def set_fw_model(self, model):
self.set_allow(model.allow)
if model.temp_full_access_expire_time:
self.temp_full_access.setChecked(True)
self.temp_full_access_time.setValue(
(model.temp_full_access_expire_time -
int(firewall.datetime.datetime.now().strftime("%s"))) / 60)
expire_time = model.temp_full_access_expire_time - \
firewall.datetime.datetime.now().strftime("%s")
self.temp_full_access_time.setValue(int(expire_time / 60))

def disable_all_fw_conf(self):
self.firewall_modified_outside_label.setVisible(True)
Expand Down

0 comments on commit 6844de8

Please sign in to comment.