- hided the main UI on application quit to create a user experience of a shutdown without lag
- added a way to terminate QThreads safely by waiting; should be much safer - made sure that the ArgsThread class receive the signal to stop - made sure that on application shutdown, all workers will quit before the actual exit
This commit is contained in:
@@ -41,3 +41,8 @@ class WorkerStack(QtCore.QObject):
|
||||
|
||||
def on_task_completed(self, worker_name):
|
||||
self.load[str(worker_name)] -= 1
|
||||
|
||||
def quit(self):
|
||||
for thread in self.threads:
|
||||
thread.quit()
|
||||
thread.wait()
|
||||
|
||||
Reference in New Issue
Block a user