- upgraded all the plugins such that at each launch the Plugin UI is reinitialized reducing the chances to get errors like "wrapped up C++ object deleted" with the side effect that the performance might be slightly reduced

This commit is contained in:
Marius Stanciu
2021-03-28 15:21:17 +03:00
committed by Marius
parent d0327ff37d
commit 4c92083c01
39 changed files with 1239 additions and 957 deletions

View File

@@ -35,15 +35,10 @@ class DblSidedTool(AppTool):
# #############################################################################
self.ui = DsidedUI(layout=self.layout, app=self.app)
self.pluginName = self.ui.pluginName
self.connect_signals_at_init()
self.mr = None
# ############################################################################################################
# ######################################### Signals ##########################################################
# ############################################################################################################
self.connect_signals_at_init()
# ############################################################################################################
self.drill_values = ""
# will hold the Excellon object used for picking a hole as mirror reference
@@ -139,6 +134,11 @@ class DblSidedTool(AppTool):
self.ui.reset_button.clicked.connect(self.set_tool_ui)
def set_tool_ui(self):
self.clear_ui(self.layout)
self.ui = DsidedUI(layout=self.layout, app=self.app)
self.pluginName = self.ui.pluginName
self.connect_signals_at_init()
self.reset_fields()
self.ui.point_entry.set_value("")