- added possibility to see the GCode when right clicking on the Project tab on a CNCJob object and then clicking View Source

This commit is contained in:
Marius Stanciu
2019-09-15 22:46:51 +03:00
committed by Marius
parent b0d545eb03
commit c06317374e
4 changed files with 27 additions and 11 deletions

View File

@@ -320,7 +320,7 @@ class ObjectCollection(QtCore.QAbstractItemModel):
self.app.ui.menuprojectgeneratecnc.setVisible(False)
if type(obj) != FlatCAMGeometry and type(obj) != FlatCAMExcellon and type(obj) != FlatCAMGerber:
self.app.ui.menuprojectedit.setVisible(False)
if type(obj) != FlatCAMGerber and type(obj) != FlatCAMExcellon:
if type(obj) != FlatCAMGerber and type(obj) != FlatCAMExcellon and type(obj) != FlatCAMCNCjob:
self.app.ui.menuprojectviewsource.setVisible(False)
else:
self.app.ui.menuprojectgeneratecnc.setVisible(False)