- 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:
@@ -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
|
23.11.2021
|
||||||
|
|
||||||
- added a few protections against RuntimeError exceptions that randomly popup due of wrapped C++ objects being deleted
|
- added a few protections against RuntimeError exceptions that randomly popup due of wrapped C++ objects being deleted
|
||||||
|
|||||||
@@ -223,6 +223,9 @@ class ToolFollow(AppTool, Gerber):
|
|||||||
if select_method == 'all': # _("All")
|
if select_method == 'all': # _("All")
|
||||||
self.follow_all(obj, outname)
|
self.follow_all(obj, outname)
|
||||||
else:
|
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."))
|
self.app.inform.emit('[WARNING_NOTCL] %s' % _("Click the start point of the area."))
|
||||||
|
|
||||||
if self.app.use_3d_engine:
|
if self.app.use_3d_engine:
|
||||||
@@ -512,6 +515,8 @@ class ToolFollow(AppTool, Gerber):
|
|||||||
|
|
||||||
# disconnect flags
|
# disconnect flags
|
||||||
self.area_sel_disconnect_flag = False
|
self.area_sel_disconnect_flag = False
|
||||||
|
# disable the "notebook UI" until finished
|
||||||
|
self.app.ui.notebook.setDisabled(False)
|
||||||
|
|
||||||
if len(self.sel_rect) == 0:
|
if len(self.sel_rect) == 0:
|
||||||
return
|
return
|
||||||
@@ -649,6 +654,9 @@ class ToolFollow(AppTool, Gerber):
|
|||||||
self.delete_moving_selection_shape()
|
self.delete_moving_selection_shape()
|
||||||
self.delete_tool_selection_shape()
|
self.delete_tool_selection_shape()
|
||||||
|
|
||||||
|
# disable the "notebook UI" until finished
|
||||||
|
self.app.ui.notebook.setDisabled(False)
|
||||||
|
|
||||||
|
|
||||||
class FollowUI:
|
class FollowUI:
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user