Fix bug in Qube Manager

Accidentaly, the fix significantly improves start time (at least on two
of my machines).

fixes QubesOS/qubes-issues#3760
This commit is contained in:
Marta Marczykowska-Górecka 2018-03-30 01:10:59 +02:00
parent efa3de0171
commit 5cfa0bb9c0
No known key found for this signature in database
GPG Key ID: 9A752C30B26FD04B

View File

@ -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