- fixed the Copy Object function when the object is Gerber

- added the Copy entry to the Project context menu
- made the functions behind Disable and Enable project context menu entries, non-threaded to fix a possible issue
This commit is contained in:
Marius Stanciu
2019-01-24 12:31:42 +02:00
committed by Marius
parent 780b5c8bf2
commit 8f787fc61a
4 changed files with 73 additions and 32 deletions

View File

@@ -388,6 +388,7 @@ class ObjectCollection(QtCore.QAbstractItemModel):
sel = len(self.view.selectedIndexes()) > 0
self.app.ui.menuprojectenable.setEnabled(sel)
self.app.ui.menuprojectdisable.setEnabled(sel)
self.app.ui.menuprojectcopy.setEnabled(sel)
self.app.ui.menuprojectdelete.setEnabled(sel)
if sel: