- made sure that the Tools Tab is cleared on Editors exit
This commit is contained in:
parent
72724eafae
commit
7294c88ef9
|
@ -2218,6 +2218,11 @@ class App(QtCore.QObject):
|
||||||
response = msgbox.clickedButton()
|
response = msgbox.clickedButton()
|
||||||
|
|
||||||
if response == bt_yes:
|
if response == bt_yes:
|
||||||
|
# clean the Tools Tab
|
||||||
|
self.ui.tool_scroll_area.takeWidget()
|
||||||
|
self.ui.tool_scroll_area.setWidget(QtWidgets.QWidget())
|
||||||
|
self.ui.notebook.setTabText(2, "Tool")
|
||||||
|
|
||||||
if isinstance(edited_obj, FlatCAMGeometry):
|
if isinstance(edited_obj, FlatCAMGeometry):
|
||||||
obj_type = "Geometry"
|
obj_type = "Geometry"
|
||||||
if cleanup is None:
|
if cleanup is None:
|
||||||
|
@ -2272,6 +2277,11 @@ class App(QtCore.QObject):
|
||||||
|
|
||||||
self.inform.emit(_("[selected] %s is updated, returning to App...") % obj_type)
|
self.inform.emit(_("[selected] %s is updated, returning to App...") % obj_type)
|
||||||
elif response == bt_no:
|
elif response == bt_no:
|
||||||
|
# clean the Tools Tab
|
||||||
|
self.ui.tool_scroll_area.takeWidget()
|
||||||
|
self.ui.tool_scroll_area.setWidget(QtWidgets.QWidget())
|
||||||
|
self.ui.notebook.setTabText(2, "Tool")
|
||||||
|
|
||||||
if isinstance(edited_obj, FlatCAMGeometry):
|
if isinstance(edited_obj, FlatCAMGeometry):
|
||||||
self.geo_editor.deactivate()
|
self.geo_editor.deactivate()
|
||||||
elif isinstance(edited_obj, FlatCAMGerber):
|
elif isinstance(edited_obj, FlatCAMGerber):
|
||||||
|
|
|
@ -22,6 +22,7 @@ CAD program, and create G-Code for Isolation routing.
|
||||||
- Excellon Editor: made Add Pad tool to work until right click
|
- Excellon Editor: made Add Pad tool to work until right click
|
||||||
- Excellon Editor: fixed mouse right click was always doing popup context menu
|
- Excellon Editor: fixed mouse right click was always doing popup context menu
|
||||||
- GUIElements.FCEntry2(): added a try-except clause
|
- GUIElements.FCEntry2(): added a try-except clause
|
||||||
|
- made sure that the Tools Tab is cleared on Editors exit
|
||||||
|
|
||||||
30.04.2019
|
30.04.2019
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue