Disable network menu for templates

This commit is contained in:
donoban 2021-02-03 00:04:30 +01:00
parent 94ede98007
commit 37513dec7e
No known key found for this signature in database
GPG Key ID: 141310D8E3ED08A5

View File

@ -1202,6 +1202,7 @@ class VmManagerWindow(ui_qubemanager.Ui_VmManagerWindow, QMainWindow):
self.template_menu.setEnabled(False)
elif vm.klass == 'TemplateVM':
self.template_menu.setEnabled(False)
self.network_menu.setEnabled(False)
if vm.vm.features.get('internal', False):
self.action_appmenus.setEnabled(False)