From d3f144dec4e8a070cd31e823e809105d5b720f7e Mon Sep 17 00:00:00 2001 From: Marius Stanciu Date: Mon, 30 Dec 2019 23:53:56 +0200 Subject: [PATCH] - another attempt to make TclCommand quit_flatcam work under Linux --- FlatCAMApp.py | 11 +++++++---- README.md | 1 + 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/FlatCAMApp.py b/FlatCAMApp.py index 38d21e23..c4d96468 100644 --- a/FlatCAMApp.py +++ b/FlatCAMApp.py @@ -5104,7 +5104,7 @@ class App(QtCore.QObject): :return: None """ - self.save_defaults() + self.save_defaults(silent=True) log.debug("App.final_save() --> App Defaults saved.") if self.cmd_line_headless != 1: @@ -5139,10 +5139,13 @@ class App(QtCore.QObject): log.debug("App.final_save() --> App UI state saved.") - QtWidgets.qApp.quit() - + # QtWidgets.qApp.quit() + QtCore.QCoreApplication.exit() if sys.platform != 'win32': - sys.exit() + try: + sys.exit() + except Exception: + pass def on_portable_checked(self, state): """ diff --git a/README.md b/README.md index 01c68b91..c8d6ada9 100644 --- a/README.md +++ b/README.md @@ -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 - attempt to make TclCommand quit_flatcam work under Linux - 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