- a new feature that when selecting an object in the Project Tab, that object is redrawn over the other objects, in top position. Feature controlled from Preferences -> Gerber -> General.

This commit is contained in:
Marius Stanciu
2022-02-11 02:35:40 +02:00
committed by Marius
parent 3d4e195ae1
commit 4b611f5ce3
7 changed files with 28 additions and 8 deletions

View File

@@ -913,7 +913,7 @@ class GerberObject(FlatCAMObj, Gerber):
:param kwargs: Color and face_color, visible
:return:
"""
self.app.log.debug(str(inspect.stack()[1][3]) + " --> GerberObject.plot()")
# self.app.log.debug(str(inspect.stack()[1][3]) + " --> GerberObject.plot()")
# Does all the required setup and returns False
# if the 'ptint' option is set to False.

View File

@@ -999,7 +999,10 @@ class ObjectCollection(QtCore.QAbstractItemModel):
# make sure that if the Properties Tab is selected then the Object UI is updated (built)
self.app.on_notebook_tab_changed()
# don't emit the signal if there more than one objects selected
if self.app.defaults["gerber_plot_on_select"] is True:
self.app.on_enable_sel_plots(silent=True)
# don't emit the signal if there is more than one objects selected
# this signal is intended to be emitted for a single selection in the collection view
if len(self.get_selected()) == 1:
self.app.proj_selection_changed.emit(current, previous)