Just moved method to better place

This commit is contained in:
donoban 2018-10-18 14:13:06 +02:00
parent afcdba3029
commit b45f318a3a
No known key found for this signature in database
GPG Key ID: 141310D8E3ED08A5

View File

@ -492,6 +492,11 @@ class VmManagerWindow(ui_qubemanager.Ui_VmManagerWindow, QtGui.QMainWindow):
timer.start(1000 * 30) # 30s
self.check_updates()
def clear_threads(self):
for thread in self.threads_list:
if thread.isFinished():
self.threads_list.remove(thread)
def closeEvent(self, event):
# pylint: disable=invalid-name
# save window size at close
@ -786,11 +791,6 @@ class VmManagerWindow(ui_qubemanager.Ui_VmManagerWindow, QtGui.QMainWindow):
thread.finished.connect(self.clear_threads)
thread.start()
def clear_threads(self):
for thread in self.threads_list:
if thread.isFinished():
self.threads_list.remove(thread)
# noinspection PyArgumentList
@QtCore.pyqtSlot(name='on_action_clonevm_triggered')
def action_clonevm_triggered(self):