- 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:
@@ -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("")
|
||||
|
||||
Reference in New Issue
Block a user