diff --git a/FlatCAMApp.py b/FlatCAMApp.py index 001d8007..5de1325e 100644 --- a/FlatCAMApp.py +++ b/FlatCAMApp.py @@ -7087,6 +7087,14 @@ class App(QtCore.QObject): # This will write the setting to the platform specific storage. del settgs + if save_to_file: + # close the tab and delete it + for idx in range(self.ui.plot_tab_area.count()): + if self.ui.plot_tab_area.tabText(idx) == _("Preferences"): + self.ui.plot_tab_area.tabBar.setTabTextColor(idx, QtGui.QColor('black')) + self.ui.plot_tab_area.closeTab(idx) + break + def on_pref_close_button(self): # Preferences saved, update flag self.preferences_changed_flag = False @@ -8149,6 +8157,7 @@ class App(QtCore.QObject): if isinstance(obj, FlatCAMGeometry): obj.on_tool_from_db_inserted(tool=tool_from_db) + # close the tab and delete it for idx in range(self.ui.plot_tab_area.count()): if self.ui.plot_tab_area.tabText(idx) == _("Tools Database"): wdg = self.ui.plot_tab_area.widget(idx) diff --git a/README.md b/README.md index bc4273d6..ce3daf76 100644 --- a/README.md +++ b/README.md @@ -12,6 +12,7 @@ CAD program, and create G-Code for Isolation routing. 11.04.2020 - fixed issue #394 - the saveDialog in Linux did not added the selected extension +- when the Save button is clicked in the Edit -> Preferences the Preferences tab is closed. 10.04.2020