From 518f230f7618c5d3c51c6206ace2ebccc2b2078e Mon Sep 17 00:00:00 2001 From: Cole Robinson Date: Sun, 20 Sep 2020 22:22:45 -0400 Subject: [PATCH] vmwindow: Remove non-events XML refreshing on resource tick This is an awkward place to put it, and I'm pretty sure it's not even useful in the non-events case nowadays due to improved libvirtobject.py infrastructure Signed-off-by: Cole Robinson --- virtManager/vmwindow.py | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/virtManager/vmwindow.py b/virtManager/vmwindow.py index 62fc6cb81..fbcc44f09 100644 --- a/virtManager/vmwindow.py +++ b/virtManager/vmwindow.py @@ -568,17 +568,6 @@ class vmmVMWindow(vmmGObjectUI): details = self.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 - try: - if self.is_visible(): - self.vm.ensure_latest_xml() - except Exception as e: # pragma: no cover - if self.conn.support.is_libvirt_error_no_domain(e): - self.close() - return - raise - if page == DETAILS_PAGE_DETAILS: self._details.vmwindow_resources_refreshed()