- toggling the plot is now deleting the selection shape, if any

This commit is contained in:
Marius Stanciu
2021-08-04 12:52:08 +03:00
committed by Marius
parent 4d60e5c197
commit c3d5fccb80
2 changed files with 10 additions and 2 deletions

View File

@@ -7,6 +7,10 @@ CHANGELOG for FlatCAM beta
================================================= =================================================
4.08.2021
- toggling the plot is now deleting the selection shape, if any
23.07.2021 23.07.2021
- fixed errors in the Roland preprocessors - fixed errors in the Roland preprocessors

View File

@@ -6960,7 +6960,7 @@ class App(QtCore.QObject):
self.on_zoom_fit() self.on_zoom_fit()
self.collection.update_view() self.collection.update_view()
# self.inform.emit(_("Plots updated ...")) # self.inform.emit(_("Done."))
def on_toolbar_replot(self): def on_toolbar_replot(self):
""" """
@@ -8629,12 +8629,16 @@ class App(QtCore.QObject):
return return
self.log.debug("Toggling plots ...") self.log.debug("Toggling plots ...")
self.inform.emit('%s...' % _("Working")) # self.inform.emit('%s...' % _("Working"))
for obj in objects: for obj in objects:
if obj.options['plot'] is False: if obj.options['plot'] is False:
obj.options['plot'] = True obj.options['plot'] = True
else: else:
obj.options['plot'] = False obj.options['plot'] = False
try:
self.delete_selection_shape()
except Exception:
pass
self.app_obj.plots_updated.emit() self.app_obj.plots_updated.emit()
def clear_plots(self): def clear_plots(self):