ui: improve pause/resume tooltip
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1238618 Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
This commit is contained in:
parent
3bca4e7fcb
commit
fedf2e7b66
|
@ -1301,6 +1301,12 @@ class vmmDetails(vmmGObjectUI):
|
|||
self.widget("control-shutdown").get_menu().update_widget_states(vm)
|
||||
self.widget("control-pause").set_sensitive(stop)
|
||||
|
||||
if paused:
|
||||
pauseTooltip = _("Resume the virtual machine")
|
||||
else:
|
||||
pauseTooltip = _("Pause the virtual machine")
|
||||
self.widget("control-pause").set_tooltip_text(pauseTooltip)
|
||||
|
||||
self.widget("details-vm-menu").get_submenu().update_widget_states(vm)
|
||||
self.set_pause_state(paused)
|
||||
|
||||
|
|
|
@ -870,6 +870,12 @@ class vmmManager(vmmGObjectUI):
|
|||
self.set_pause_state(is_paused)
|
||||
self.widget("vm-pause").set_sensitive(show_pause)
|
||||
|
||||
if is_paused:
|
||||
pauseTooltip = _("Resume the virtual machine")
|
||||
else:
|
||||
pauseTooltip = _("Pause the virtual machine")
|
||||
self.widget("vm-pause").set_tooltip_text(pauseTooltip)
|
||||
|
||||
self.widget("menu_edit_details").set_sensitive(show_details)
|
||||
self.widget("menu_host_details").set_sensitive(host_details)
|
||||
|
||||
|
|
Loading…
Reference in New Issue