mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-01-26 10:03:54 +03:00
details: Reset Remove tooltip on hardware selection
Otherwise it can be out of date Reported-by: Lin Ma <lma@suse.com>
This commit is contained in:
parent
cacf2abe6b
commit
5212ab992e
@ -998,9 +998,6 @@ class vmmDetails(vmmGObjectUI):
|
||||
for name in caps.get_cpu_values(self.vm.get_arch()):
|
||||
model.append([name, name, name, False])
|
||||
|
||||
# Remove button tooltip
|
||||
self.widget("config-remove").set_tooltip_text(_remove_tooltip)
|
||||
|
||||
# Disk cache combo
|
||||
disk_cache = self.widget("disk-cache")
|
||||
vmmAddHardware.build_disk_cache_combo(self.vm, disk_cache)
|
||||
@ -1196,6 +1193,7 @@ class vmmDetails(vmmGObjectUI):
|
||||
pagetype = self.force_get_hw_pagetype(page)
|
||||
|
||||
self.widget("config-remove").set_sensitive(True)
|
||||
self.widget("config-remove").set_tooltip_text(_remove_tooltip)
|
||||
self.widget("hw-panel").set_sensitive(True)
|
||||
self.widget("hw-panel").show()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user