mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-01-11 05:17:59 +03:00
vmmenu: Fix updating submenu state
This commit is contained in:
parent
9a1fc63c89
commit
0b47635676
@ -137,8 +137,8 @@ class VMActionMenu(_VMMenu):
|
||||
|
||||
for child in self.get_children():
|
||||
name = getattr(child, "vmm_widget_name", None)
|
||||
if hasattr(child, "update_widget_states"):
|
||||
child.update_widget_states(vm)
|
||||
if child.get_submenu():
|
||||
child.get_submenu().update_widget_states(vm)
|
||||
if name in statemap:
|
||||
child.set_sensitive(statemap[name])
|
||||
if name in vismap:
|
||||
|
Loading…
Reference in New Issue
Block a user