- 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'

This commit is contained in:
Marius Stanciu
2021-11-26 01:55:54 +02:00
committed by Marius
parent a54de942a3
commit 7f472838d6
2 changed files with 12 additions and 0 deletions

View File

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