- another attempt to make TclCommand quit_flatcam work under Linux

This commit is contained in:
Marius Stanciu
2019-12-30 23:53:56 +02:00
committed by Marius
parent 258bd529d2
commit d3f144dec4
2 changed files with 8 additions and 4 deletions

View File

@@ -5104,7 +5104,7 @@ class App(QtCore.QObject):
:return: None :return: None
""" """
self.save_defaults() self.save_defaults(silent=True)
log.debug("App.final_save() --> App Defaults saved.") log.debug("App.final_save() --> App Defaults saved.")
if self.cmd_line_headless != 1: if self.cmd_line_headless != 1:
@@ -5139,10 +5139,13 @@ class App(QtCore.QObject):
log.debug("App.final_save() --> App UI state saved.") log.debug("App.final_save() --> App UI state saved.")
QtWidgets.qApp.quit() # QtWidgets.qApp.quit()
QtCore.QCoreApplication.exit()
if sys.platform != 'win32': if sys.platform != 'win32':
sys.exit() try:
sys.exit()
except Exception:
pass
def on_portable_checked(self, state): def on_portable_checked(self, state):
""" """

View File

@@ -20,6 +20,7 @@ CAD program, and create G-Code for Isolation routing.
- in Transform Tool mae sure that the buffer sub-tool parameters are better explained in tooltips - in Transform Tool mae sure that the buffer sub-tool parameters are better explained in tooltips
- attempt to make TclCommand quit_flatcam work under Linux - attempt to make TclCommand quit_flatcam work under Linux
- some fixes in the NCC Tcl command (using the bool() method on some params) - some fixes in the NCC Tcl command (using the bool() method on some params)
- another attempt to make TclCommand quit_flatcam work under Linux
29.12.2019 29.12.2019