From 7f472838d6f6e082ce08514d7305adc2cb8dff6f Mon Sep 17 00:00:00 2001 From: Marius Stanciu Date: Fri, 26 Nov 2021 01:55:54 +0200 Subject: [PATCH] - in Follow Plugin made sure that the notebook is disabled until the user finish (or cancel) the operation when using the area type of 'follow' --- CHANGELOG.md | 4 ++++ appPlugins/ToolFollow.py | 8 ++++++++ 2 files changed, 12 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index c317a0cb..ee8a365d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ CHANGELOG for FlatCAM beta ================================================= +26.11.2021 + +- in Follow Plugin made sure that the notebook is disabled until the user finish (or cancel) the operation when using the area type of 'follow' + 23.11.2021 - added a few protections against RuntimeError exceptions that randomly popup due of wrapped C++ objects being deleted diff --git a/appPlugins/ToolFollow.py b/appPlugins/ToolFollow.py index bc34b5ee..4c854a8f 100644 --- a/appPlugins/ToolFollow.py +++ b/appPlugins/ToolFollow.py @@ -223,6 +223,9 @@ class ToolFollow(AppTool, Gerber): if select_method == 'all': # _("All") self.follow_all(obj, outname) else: + # disable the "notebook UI" until finished + self.app.ui.notebook.setDisabled(True) + self.app.inform.emit('[WARNING_NOTCL] %s' % _("Click the start point of the area.")) if self.app.use_3d_engine: @@ -512,6 +515,8 @@ class ToolFollow(AppTool, Gerber): # disconnect flags self.area_sel_disconnect_flag = False + # disable the "notebook UI" until finished + self.app.ui.notebook.setDisabled(False) if len(self.sel_rect) == 0: return @@ -649,6 +654,9 @@ class ToolFollow(AppTool, Gerber): self.delete_moving_selection_shape() self.delete_tool_selection_shape() + # disable the "notebook UI" until finished + self.app.ui.notebook.setDisabled(False) + class FollowUI: