mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-02-25 18:55:27 -06: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")
|
details = self.window.get_widget("details-pages")
|
||||||
page = details.get_current_page()
|
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
|
if (page == PAGE_DETAILS and
|
||||||
self.get_hw_selection(HW_LIST_COL_TYPE) == HW_LIST_TYPE_STATS):
|
self.get_hw_selection(HW_LIST_COL_TYPE) == HW_LIST_TYPE_STATS):
|
||||||
self.refresh_stats_page()
|
self.refresh_stats_page()
|
||||||
|
@ -110,6 +110,9 @@ class vmmDomain(gobject.GObject):
|
|||||||
self._invalidate_xml()
|
self._invalidate_xml()
|
||||||
return self.get_xml()
|
return self.get_xml()
|
||||||
|
|
||||||
|
def refresh_xml(self):
|
||||||
|
self._update_xml()
|
||||||
|
|
||||||
def _xml_fetch_helper(self, refresh_if_necc):
|
def _xml_fetch_helper(self, refresh_if_necc):
|
||||||
# Helper to fetch xml with various options
|
# Helper to fetch xml with various options
|
||||||
if self._xml is None:
|
if self._xml is None:
|
||||||
|
Loading…
Reference in New Issue
Block a user