mirror of
https://github.com/virt-manager/virt-manager.git
synced 2024-12-23 17:34:21 +03:00
details: Queue up 'default' console page when VM starts
This commit is contained in:
parent
dee7cb91a2
commit
cfbc5e58f5
@ -1132,6 +1132,8 @@ class vmmDetails(vmmGObjectUI):
|
||||
c.set_sensitive(not (run or paused))
|
||||
|
||||
self.console.update_widget_states(vm, status)
|
||||
if not run:
|
||||
self.activate_default_console_page()
|
||||
|
||||
self.window.get_widget("overview-status-text").set_text(
|
||||
self.vm.run_status())
|
||||
@ -1158,10 +1160,7 @@ class vmmDetails(vmmGObjectUI):
|
||||
def exit_app(self, src_ignore):
|
||||
self.emit("action-exit-app")
|
||||
|
||||
def activate_default_page(self):
|
||||
pages = self.window.get_widget("details-pages")
|
||||
pages.set_current_page(PAGE_CONSOLE)
|
||||
|
||||
def activate_default_console_page(self):
|
||||
if self.vm.get_graphics_devices() or not self.vm.get_serial_devs():
|
||||
return
|
||||
|
||||
@ -1174,6 +1173,11 @@ class vmmDetails(vmmGObjectUI):
|
||||
self._show_serial_tab(name, serialidx)
|
||||
break
|
||||
|
||||
def activate_default_page(self):
|
||||
pages = self.window.get_widget("details-pages")
|
||||
pages.set_current_page(PAGE_CONSOLE)
|
||||
self.activate_default_console_page()
|
||||
|
||||
def activate_console_page(self):
|
||||
pages = self.window.get_widget("details-pages")
|
||||
pages.set_current_page(PAGE_CONSOLE)
|
||||
|
Loading…
Reference in New Issue
Block a user