From 666f7cac552221cb34e4e0c3deac8e173ee21659 Mon Sep 17 00:00:00 2001 From: Marius Stanciu Date: Tue, 22 Feb 2022 16:19:14 +0200 Subject: [PATCH] - changes in the App options are now saved to the App defaults on app exit --- CHANGELOG.md | 1 + app_Main.py | 3 +++ 2 files changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7cdb6b6f..8ca59072 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,7 @@ CHANGELOG for FlatCAM beta - in Gerber Editor: if the aperture size is 0 then an aperture code 0 is added (if it does not exist yet) - in Gerber Editor: when the Eraser tool is used, after it is applied if some geometries elements are empty, they are now removed - some fixes in remembering the last save location and last open location +- changes in the App options are now saved to the App defaults on app exit 20.02.2022 diff --git a/app_Main.py b/app_Main.py index c6c4826c..7347c041 100644 --- a/app_Main.py +++ b/app_Main.py @@ -4091,6 +4091,9 @@ class App(QtCore.QObject): self.plotcanvas.graph_event_disconnect(self.mdc) self.plotcanvas.graph_event_disconnect(self.kp) + # make sure that any change we made while working in the app is saved to the defaults + # TODO in the future we need to make a difference between settings that need to be persistent all the time + self.defaults.update(self.options) self.preferencesUiManager.save_defaults(silent=True) if silent is False: self.log.debug("App.quit_application() --> App Defaults saved.")