From 803406089649d179a3ad99d68d725a23260c06f6 Mon Sep 17 00:00:00 2001 From: donoban Date: Tue, 9 Feb 2021 21:11:35 +0100 Subject: [PATCH] Fix coherence in network menu when adding/removing domains --- qubesmanager/qube_manager.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/qubesmanager/qube_manager.py b/qubesmanager/qube_manager.py index 42d4b6c..e7505da 100644 --- a/qubesmanager/qube_manager.py +++ b/qubesmanager/qube_manager.py @@ -1033,6 +1033,7 @@ class VmManagerWindow(ui_qubemanager.Ui_VmManagerWindow, QMainWindow): self.qubes_cache.remove_vm(name=kwargs['vm']) self.proxy.invalidate() self.init_template_menu() + self.init_network_menu() def on_domain_status_changed(self, vm, event, **_kwargs): try: @@ -1062,6 +1063,8 @@ class VmManagerWindow(ui_qubemanager.Ui_VmManagerWindow, QMainWindow): return try: + if event.endswith(':provides_network'): + self.init_network_menu() self.qubes_cache.get_vm(qid=vm.qid).update(event=event) self.proxy.invalidate() except exc.QubesDaemonAccessError: