- remade the enable/disable plots functions to work only where it needs to (no sense in disabling a plot already disabled)
This commit is contained in:
parent
bbc00c8f35
commit
5c4c59d1a2
|
@ -5664,6 +5664,7 @@ class App(QtCore.QObject):
|
|||
self.plotcanvas.vispy_canvas.update() # TODO: Need update canvas?
|
||||
self.on_zoom_fit(None)
|
||||
self.collection.update_view()
|
||||
# self.inform.emit(_("Plots updated ..."))
|
||||
|
||||
# TODO: Rework toolbar 'clear', 'replot' functions
|
||||
def on_toolbar_replot(self):
|
||||
|
@ -8901,6 +8902,7 @@ The normal flow when working in FlatCAM is the following:</span></p>
|
|||
log.debug("Enabling plots ...")
|
||||
self.inform.emit(_("Working ..."))
|
||||
for obj in objects:
|
||||
if obj.options['plot'] is False:
|
||||
obj.options['plot'] = True
|
||||
self.plots_updated.emit()
|
||||
|
||||
|
@ -8915,19 +8917,10 @@ The normal flow when working in FlatCAM is the following:</span></p>
|
|||
if not self.collection.get_selected():
|
||||
return
|
||||
|
||||
# if at least one object is visible then do the disable
|
||||
exit_flag = True
|
||||
for obj in objects:
|
||||
if obj.options['plot'] is True:
|
||||
exit_flag = False
|
||||
break
|
||||
|
||||
if exit_flag:
|
||||
return
|
||||
|
||||
log.debug("Disabling plots ...")
|
||||
self.inform.emit(_("Working ..."))
|
||||
for obj in objects:
|
||||
if obj.options['plot'] is True:
|
||||
obj.options['plot'] = False
|
||||
self.plots_updated.emit()
|
||||
|
||||
|
|
|
@ -15,6 +15,7 @@ CAD program, and create G-Code for Isolation routing.
|
|||
- fixed a weird error that created a crash in the following scenario: create a new excellon, edit it, add some drills/slots, delete it without saving, create a new excellon, try to edit and a crash is issued due of a wrapped C++ error
|
||||
- fixed bug selection in Excellon editor with a selection window in case that the number of selected items is even
|
||||
- updated the default values to more convenient ones
|
||||
- remade the enable/disable plots functions to work only where it needs to (no sense in disabling a plot already disabled)
|
||||
|
||||
15.08.2019
|
||||
|
||||
|
|
Loading…
Reference in New Issue