- some GUI changes in Milling Plugin

- fixed the multiple selection in the Project Tab collection list; now only a single selection will trigger the signal 'proj_selection_changed'
- when Milling Plugin is opened, selecting an Excelon object will set the GUI to Excellon Target
This commit is contained in:
Marius Stanciu
2021-09-02 12:46:38 +03:00
committed by Marius
parent 2e23b8590b
commit 3ddb321dff
4 changed files with 41 additions and 84 deletions

View File

@@ -1001,7 +1001,10 @@ class ObjectCollection(QtCore.QAbstractItemModel):
except RuntimeError:
pass
self.app.proj_selection_changed.emit(current, previous)
# don't emit the signal if there 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)
def on_item_activated(self, index):
"""