- 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:
@@ -208,6 +208,7 @@ def restart_program(app, ask=None):
|
||||
# try to quit the QThread that run ArgsThread class
|
||||
try:
|
||||
app.listen_th.quit()
|
||||
app.listen_th.wait(1000)
|
||||
except Exception as err:
|
||||
log.error("FlatCAMTranslation.restart_program() --> %s" % str(err))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user