From 5cfa0bb9c0f16764a8a66ec1f773bfa35e5661b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marta=20Marczykowska-G=C3=B3recka?= Date: Fri, 30 Mar 2018 01:10:59 +0200 Subject: [PATCH] Fix bug in Qube Manager Accidentaly, the fix significantly improves start time (at least on two of my machines). fixes QubesOS/qubes-issues#3760 --- qubesmanager/qube_manager.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/qubesmanager/qube_manager.py b/qubesmanager/qube_manager.py index 3b5b9ae..502a569 100644 --- a/qubesmanager/qube_manager.py +++ b/qubesmanager/qube_manager.py @@ -363,6 +363,13 @@ class VmManagerWindow(ui_qubemanager.Ui_VmManagerWindow, QtGui.QMainWindow): self.load_manager_settings() + # disabling the table for the duration of filling speeds up the process + # immensely. Yes, really. + + self.table.setDisabled(True) + self.fill_table() + self.table.setEnabled(True) + self.update_size_on_disk = False self.shutdown_monitor = {} @@ -461,8 +468,10 @@ class VmManagerWindow(ui_qubemanager.Ui_VmManagerWindow, QtGui.QMainWindow): self.searchbox.setFocus() def update_table(self): - + # disabling the table speeds up the process of filling it + self.table.setDisabled(True) self.fill_table() + self.table.setEnabled(True) # TODO: instead of manually refreshing the entire table, use dbus events # reapply sorting