- 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:
@@ -75,6 +75,7 @@ class ToolLevelling(AppTool, CNCjob):
|
||||
# #############################################################################
|
||||
self.ui = LevelUI(layout=self.layout, app=self.app)
|
||||
self.pluginName = self.ui.pluginName
|
||||
self.connect_signals_at_init()
|
||||
|
||||
# updated in the self.set_tool_ui()
|
||||
self.form_fields = {}
|
||||
@@ -127,11 +128,6 @@ class ToolLevelling(AppTool, CNCjob):
|
||||
# store the current selection shape status to be restored after manual adding test points
|
||||
self.old_selection_state = self.app.defaults['global_selection_shape']
|
||||
|
||||
# #############################################################################################################
|
||||
# ####################################### Signals ###########################################################
|
||||
# #############################################################################################################
|
||||
self.connect_signals_at_init()
|
||||
|
||||
def install(self, icon=None, separator=None, **kwargs):
|
||||
AppTool.install(self, icon, separator, shortcut='', **kwargs)
|
||||
|
||||
@@ -236,6 +232,11 @@ class ToolLevelling(AppTool, CNCjob):
|
||||
def set_tool_ui(self):
|
||||
self.units = self.app.defaults['units'].upper()
|
||||
|
||||
self.clear_ui(self.layout)
|
||||
self.ui = LevelUI(layout=self.layout, app=self.app)
|
||||
self.pluginName = self.ui.pluginName
|
||||
self.connect_signals_at_init()
|
||||
|
||||
# try to select in the CNCJob combobox the active object
|
||||
try:
|
||||
selected_obj = self.app.collection.get_active()
|
||||
|
||||
Reference in New Issue
Block a user