- 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:
Marius Stanciu
2023-05-31 13:46:17 +03:00
parent 26e0653eeb
commit eb0f687bdc
5 changed files with 141 additions and 3 deletions

View File

@@ -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)

View File

@@ -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):
"""

View File

@@ -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)