mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-01-13 13:17:57 +03:00
Make sure we have updated XML when viewing VM details.
This commit is contained in:
parent
575ebc7077
commit
0eef04170c
@ -857,6 +857,11 @@ class vmmDetails(gobject.GObject):
|
||||
details = self.window.get_widget("details-pages")
|
||||
page = details.get_current_page()
|
||||
|
||||
# If the dialog is visible, we want to make sure the XML is always
|
||||
# up to date
|
||||
if self.is_visible():
|
||||
self.vm.refresh_xml()
|
||||
|
||||
if (page == PAGE_DETAILS and
|
||||
self.get_hw_selection(HW_LIST_COL_TYPE) == HW_LIST_TYPE_STATS):
|
||||
self.refresh_stats_page()
|
||||
|
@ -110,6 +110,9 @@ class vmmDomain(gobject.GObject):
|
||||
self._invalidate_xml()
|
||||
return self.get_xml()
|
||||
|
||||
def refresh_xml(self):
|
||||
self._update_xml()
|
||||
|
||||
def _xml_fetch_helper(self, refresh_if_necc):
|
||||
# Helper to fetch xml with various options
|
||||
if self._xml is None:
|
||||
|
Loading…
Reference in New Issue
Block a user