- fixed the issue in Milling Plugin that did not automatically set the object combo to the previously selected object

This commit is contained in:
Marius Stanciu
2021-09-01 23:16:17 +03:00
committed by Marius
parent 290647a2be
commit 2e23b8590b
6 changed files with 56 additions and 36 deletions

View File

@@ -6685,7 +6685,7 @@ class App(QtCore.QObject):
def on_notebook_closed(self, tab_obj_name):
# closed_plugin_name = self.ui.plugin_scroll_area.widget().objectName()
closed_plugin_name = self.ui.plugin_scroll_area.widget().objectName()
# # print(closed_plugin_name)
# if closed_plugin_name == _("Levelling"):
# # clear the possible drawn probing shapes
@@ -6693,6 +6693,17 @@ class App(QtCore.QObject):
# elif closed_plugin_name in [_("Isolation"), _("NCC"), _("Paint"), _("Punch Gerber")]:
# self.tool_shapes.clear(update=True)
disconnected_tool = self.ui.plugin_scroll_area.widget()
# try:
# # if the closed plugin name is Milling
# disconnected_tool.disconnect_signals()
# disconnected_tool.ui_disconnect()
# disconnected_tool.clear_ui(disconnected_tool.layout)
#
# except Exception as err:
# print(str(err))
try:
# clear the possible drawn probing shapes for Levelling Tool
self.levelling_tool.probing_shapes.clear(update=True)