From f8ccf03786406977737d5402a5736d3fa3c4a120 Mon Sep 17 00:00:00 2001 From: Marius Stanciu Date: Sun, 1 May 2022 06:02:48 +0300 Subject: [PATCH] - fixed persistence of view status for the coordinates toolbars - fixed broken selection in Excellon Editor --- CHANGELOG.md | 5 +++++ appEditors/AppExcEditor.py | 2 +- appGUI/MainGUI.py | 8 ++++---- 3 files changed, 10 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f9dbab4e..d118ec02 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,11 @@ CHANGELOG for FlatCAM Evo beta ================================================= +1.05.2022 + +- fixed persistence of view status for the coordinates toolbars +- fixed broken selection in Excellon Editor + 30.04.2022 - in Excellon Editor, Slot Plugin, made sure that once the Editor is active any change for this plugin parameters will be kept until editor is exit or that parameter is changed again diff --git a/appEditors/AppExcEditor.py b/appEditors/AppExcEditor.py index 640458f9..048116ca 100644 --- a/appEditors/AppExcEditor.py +++ b/appEditors/AppExcEditor.py @@ -4110,7 +4110,7 @@ class AppExcEditor(QtCore.QObject): self.replot() click_position = pos if pos is not None else self.clicked_pos - if self.active_tool is not None: + if self.active_tool is not None and self.active_tool.name != 'drill_select': # Dispatch event to active_tool try: self.active_tool.click_release(click_position) diff --git a/appGUI/MainGUI.py b/appGUI/MainGUI.py index b3307cb2..2d0b3fa1 100644 --- a/appGUI/MainGUI.py +++ b/appGUI/MainGUI.py @@ -2357,19 +2357,19 @@ class MainGUI(QtWidgets.QMainWindow): status_action.triggered.connect(self.toggle_statusbar) def toggle_coords(self, checked): - self.app.defaults["global_coordsbar_show"] = checked + self.app.options["global_coordsbar_show"] = checked self.coords_toolbar.setVisible(checked) def toggle_delta_coords(self, checked): - self.app.defaults["global_delta_coordsbar_show"] = checked + self.app.options["global_delta_coordsbar_show"] = checked self.delta_coords_toolbar.setVisible(checked) def toggle_gridbar(self, checked): - self.app.defaults["global_gridbar_show"] = checked + self.app.options["global_gridbar_show"] = checked self.grid_toolbar.setVisible(checked) def toggle_statusbar(self, checked): - self.app.defaults["global_statusbar_show"] = checked + self.app.options["global_statusbar_show"] = checked self.status_toolbar.setVisible(checked) def on_preferences_open_folder(self):