- some refactoring

- working on Milling Tool and Drilling Tool: made sure that the plugin UI is initialized only when the plugin (Tool) is run in order to avoid errors like (wrapped C++ objects was deleted)
This commit is contained in:
Marius Stanciu
2021-01-29 02:08:34 +02:00
committed by Marius
parent 6c3a99d876
commit 04649622eb
54 changed files with 581 additions and 561 deletions

View File

@@ -24,7 +24,7 @@ log = logging.getLogger('base')
class ToolMove(AppTool):
toolName = _("Move")
pluginName = _("Move")
replot_signal = QtCore.pyqtSignal(list)
def __init__(self, app):
@@ -65,7 +65,7 @@ class ToolMove(AppTool):
def run(self, toggle):
self.app.defaults.report_usage("ToolMove()")
if self.app.tool_tab_locked is True:
if self.app.plugin_tab_locked is True:
return
self.toggle()