No label icon for Dom0 (#545)
This commit is contained in:
parent
9d4e58c8d4
commit
b8733f2b70
@ -151,6 +151,10 @@ class VmLabelWidget(VmIconWidget):
|
||||
self.tableItem = self.VmLabelItem(self.value)
|
||||
|
||||
def get_vm_icon_path(self, vm):
|
||||
if vm.qid == 0:
|
||||
self.value = 100
|
||||
return ":/off.png"
|
||||
else:
|
||||
self.value = vm.label.index
|
||||
return vm.label.icon_path
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user