- make sure that the fixes above apply when rebooting app for theme change or for language change

This commit is contained in:
Marius Stanciu
2020-01-19 17:39:32 +02:00
committed by Marius
parent 24260b29b4
commit a9d69a57fe
3 changed files with 26 additions and 4 deletions

View File

@@ -183,6 +183,12 @@ def restart_program(app, ask=None):
else:
resource_loc = 'share'
# close the Socket in ArgsThread class
app.new_launch.listener.close()
# close the QThread that runs ArgsThread class
app.th.quit()
if app.should_we_save and app.collection.get_list() or ask is True:
msgbox = QtWidgets.QMessageBox()
msgbox.setText(_("There are files/objects modified in FlatCAM. "