- when the Save button is clicked in the Edit -> Preferences the Preferences tab is closed.
This commit is contained in:
parent
abce81d802
commit
45a2890850
|
@ -7087,6 +7087,14 @@ class App(QtCore.QObject):
|
||||||
# This will write the setting to the platform specific storage.
|
# This will write the setting to the platform specific storage.
|
||||||
del settgs
|
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):
|
def on_pref_close_button(self):
|
||||||
# Preferences saved, update flag
|
# Preferences saved, update flag
|
||||||
self.preferences_changed_flag = False
|
self.preferences_changed_flag = False
|
||||||
|
@ -8149,6 +8157,7 @@ class App(QtCore.QObject):
|
||||||
if isinstance(obj, FlatCAMGeometry):
|
if isinstance(obj, FlatCAMGeometry):
|
||||||
obj.on_tool_from_db_inserted(tool=tool_from_db)
|
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()):
|
for idx in range(self.ui.plot_tab_area.count()):
|
||||||
if self.ui.plot_tab_area.tabText(idx) == _("Tools Database"):
|
if self.ui.plot_tab_area.tabText(idx) == _("Tools Database"):
|
||||||
wdg = self.ui.plot_tab_area.widget(idx)
|
wdg = self.ui.plot_tab_area.widget(idx)
|
||||||
|
|
|
@ -12,6 +12,7 @@ CAD program, and create G-Code for Isolation routing.
|
||||||
11.04.2020
|
11.04.2020
|
||||||
|
|
||||||
- fixed issue #394 - the saveDialog in Linux did not added the selected extension
|
- 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
|
10.04.2020
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue