- added a toggle Grid button to the canvas context menu in the Grids submenu

This commit is contained in:
Marius Stanciu
2019-05-24 18:53:33 +03:00
parent e28e109e90
commit bc3da37e81
5 changed files with 24 additions and 13 deletions

View File

@@ -3373,10 +3373,7 @@ class FlatCAMGeoEditor(QtCore.QObject):
def toolbar_tool_toggle(self, key):
self.options[key] = self.sender().isChecked()
if self.options[key] == True:
return 1
else:
return 0
return 1 if self.options[key] == True else 0
def clear(self):
self.active_tool = None