From 7294c88ef994e45678c00aeca0ff42f98b692476 Mon Sep 17 00:00:00 2001 From: Marius Stanciu Date: Wed, 1 May 2019 21:22:28 +0300 Subject: [PATCH] - made sure that the Tools Tab is cleared on Editors exit --- FlatCAMApp.py | 10 ++++++++++ README.md | 1 + 2 files changed, 11 insertions(+) diff --git a/FlatCAMApp.py b/FlatCAMApp.py index 2ca1eebe..d1e9218c 100644 --- a/FlatCAMApp.py +++ b/FlatCAMApp.py @@ -2218,6 +2218,11 @@ class App(QtCore.QObject): response = msgbox.clickedButton() 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): obj_type = "Geometry" if cleanup is None: @@ -2272,6 +2277,11 @@ class App(QtCore.QObject): self.inform.emit(_("[selected] %s is updated, returning to App...") % obj_type) 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): self.geo_editor.deactivate() elif isinstance(edited_obj, FlatCAMGerber): diff --git a/README.md b/README.md index 8fe9111e..e4d3df94 100644 --- a/README.md +++ b/README.md @@ -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: fixed mouse right click was always doing popup context menu - GUIElements.FCEntry2(): added a try-except clause +- made sure that the Tools Tab is cleared on Editors exit 30.04.2019