Added 'None' netvm option

This commit is contained in:
donoban 2020-11-10 00:55:55 +01:00
parent 5f4526a35c
commit ed98a1ea6e
No known key found for this signature in database
GPG Key ID: 141310D8E3ED08A5

View File

@ -842,6 +842,9 @@ class VmManagerWindow(ui_qubemanager.Ui_VmManagerWindow, QMainWindow):
def init_network_menu(self): def init_network_menu(self):
self.network_menu.clear() self.network_menu.clear()
action = self.network_menu.addAction("None")
action.setCheckable(True)
action.triggered.connect(partial(self.change_network, None))
for vm in self.qubes_app.domains: for vm in self.qubes_app.domains:
if vm.qid != 0 and vm.provides_network: if vm.qid != 0 and vm.provides_network:
action = self.network_menu.addAction(vm.name) action = self.network_menu.addAction(vm.name)