- Pdf Import plugin: fixed an issue with assigning a wrong property to a Qtimer
- Extract Plugin and Punch gerber Plugin: fixed a wrong build of the UI triggered even those tools where not launched yet
This commit is contained in:
@@ -79,6 +79,8 @@ class ToolExtract(AppTool):
|
||||
|
||||
self.old_name = grb_obj.obj_options['name']
|
||||
|
||||
self.build_tool_ui()
|
||||
|
||||
def install(self, icon=None, separator=None, **kwargs):
|
||||
AppTool.install(self, icon, separator, shortcut='Alt+I', **kwargs)
|
||||
|
||||
@@ -181,7 +183,6 @@ class ToolExtract(AppTool):
|
||||
self.ui.other_cb.stateChanged.connect(self.build_tool_ui)
|
||||
|
||||
self.ui.gerber_object_combo.currentIndexChanged.connect(self.on_object_combo_changed)
|
||||
self.ui.gerber_object_combo.currentIndexChanged.connect(self.build_tool_ui)
|
||||
|
||||
def set_tool_ui(self):
|
||||
self.clear_ui(self.layout)
|
||||
|
||||
@@ -404,7 +404,7 @@ class ToolPDF(AppTool):
|
||||
pass
|
||||
|
||||
self.check_thread.timeout.connect(self.periodic_check_handler)
|
||||
self.check_thread.start(QtCore.QThread.Priority.HighPriority) # noqa
|
||||
self.check_thread.start()
|
||||
|
||||
def periodic_check_handler(self):
|
||||
"""
|
||||
|
||||
@@ -109,6 +109,8 @@ class ToolPunchGerber(AppTool, Gerber):
|
||||
|
||||
self.old_name = grb_obj.obj_options['name']
|
||||
|
||||
self.build_tool_ui()
|
||||
|
||||
def run(self, toggle=True):
|
||||
self.app.defaults.report_usage("ToolPunchGerber()")
|
||||
|
||||
@@ -209,7 +211,6 @@ class ToolPunchGerber(AppTool, Gerber):
|
||||
self.ui.rectangular_cb.stateChanged.connect(self.build_tool_ui)
|
||||
self.ui.other_cb.stateChanged.connect(self.build_tool_ui)
|
||||
|
||||
self.ui.gerber_object_combo.currentIndexChanged.connect(self.build_tool_ui)
|
||||
self.ui.gerber_object_combo.currentIndexChanged.connect(self.on_object_combo_changed)
|
||||
|
||||
self.ui.punch_type_radio.activated_custom.connect(self.on_punch_type)
|
||||
|
||||
Reference in New Issue
Block a user