Just moved method to better place
This commit is contained in:
parent
afcdba3029
commit
b45f318a3a
@ -492,6 +492,11 @@ class VmManagerWindow(ui_qubemanager.Ui_VmManagerWindow, QtGui.QMainWindow):
|
|||||||
timer.start(1000 * 30) # 30s
|
timer.start(1000 * 30) # 30s
|
||||||
self.check_updates()
|
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):
|
def closeEvent(self, event):
|
||||||
# pylint: disable=invalid-name
|
# pylint: disable=invalid-name
|
||||||
# save window size at close
|
# save window size at close
|
||||||
@ -786,11 +791,6 @@ class VmManagerWindow(ui_qubemanager.Ui_VmManagerWindow, QtGui.QMainWindow):
|
|||||||
thread.finished.connect(self.clear_threads)
|
thread.finished.connect(self.clear_threads)
|
||||||
thread.start()
|
thread.start()
|
||||||
|
|
||||||
def clear_threads(self):
|
|
||||||
for thread in self.threads_list:
|
|
||||||
if thread.isFinished():
|
|
||||||
self.threads_list.remove(thread)
|
|
||||||
|
|
||||||
# noinspection PyArgumentList
|
# noinspection PyArgumentList
|
||||||
@QtCore.pyqtSlot(name='on_action_clonevm_triggered')
|
@QtCore.pyqtSlot(name='on_action_clonevm_triggered')
|
||||||
def action_clonevm_triggered(self):
|
def action_clonevm_triggered(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user