From 46d2304b675590b675972c091076efe4ea14d21d Mon Sep 17 00:00:00 2001 From: Marius Stanciu Date: Thu, 29 Oct 2020 17:25:08 +0200 Subject: [PATCH] - fixed a small issue in GCode Editor where the signals for the buttons were attached again at each launch of the GCode Editor --- CHANGELOG.md | 1 + appEditors/appGCodeEditor.py | 15 ++++++++------- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2b9de005..b6ec1a50 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,6 +17,7 @@ CHANGELOG for FlatCAM beta - fixed NCC Tool not working with the new changes; the check for not having complete isolation is just a Warning - fixed the sizePolicy for the FCComboBox widgets in the Preferences that holds the preprocessors - fixed issue with how the preamble / postamble GCode were inserted into the final GCode +- fixed a small issue in GCode Editor where the signals for the buttons were attached again at each launch of the GCode Editor 28.10.2020 diff --git a/appEditors/appGCodeEditor.py b/appEditors/appGCodeEditor.py index 00b8b0b6..54a218c5 100644 --- a/appEditors/appGCodeEditor.py +++ b/appEditors/appGCodeEditor.py @@ -45,6 +45,14 @@ class AppGCodeEditor(QtCore.QObject): # store the status of the editor so the Delete at object level will not work until the edit is finished self.editor_active = False + + # ################################################################################# + # ################### SIGNALS ##################################################### + # ################################################################################# + self.ui.name_entry.returnPressed.connect(self.on_name_activate) + self.ui.update_gcode_button.clicked.connect(self.insert_gcode) + self.ui.exit_editor_button.clicked.connect(lambda: self.app.editor2object()) + log.debug("Initialization of the GCode Editor is finished ...") def set_ui(self): @@ -103,13 +111,6 @@ class AppGCodeEditor(QtCore.QObject): self.activate() - # ################################################################################# - # ################### SIGNALS ##################################################### - # ################################################################################# - self.ui.name_entry.returnPressed.connect(self.on_name_activate) - self.ui.update_gcode_button.clicked.connect(self.insert_gcode) - self.ui.exit_editor_button.clicked.connect(lambda: self.app.editor2object()) - def build_ui(self): """