- fixed the Set To Origin function when Escape was clicked

This commit is contained in:
Marius Stanciu 2019-02-24 01:57:47 +02:00 committed by Marius S
parent 945196a44c
commit 4d8eefb92d
3 changed files with 8 additions and 1 deletions

View File

@ -1864,6 +1864,11 @@ class FlatCAMGUI(QtWidgets.QMainWindow):
# Escape = Deselect All
if key == QtCore.Qt.Key_Escape or key == 'Escape':
self.app.on_deselect_all()
# try to disconnect the slot from Set Origin
try:
self.app.plotcanvas.vis_disconnect('mouse_press', self.app.on_set_zero_click)
except:
pass
self.app.inform.emit("")
# Space = Toggle Active/Inactive

View File

@ -2288,7 +2288,8 @@ class FlatCAMExcellon(FlatCAMObj, Excellon):
if self.options["solid"]:
for tool in self.tools:
for geo in self.tools[tool]['solid_geometry']:
self.add_shape(shape=geo, color='#750000BF', face_color='#C40000BF', visible=self.options['plot'],
self.add_shape(shape=geo, color='#750000BF', face_color='#C40000BF',
visible=self.options['plot'],
layer=2)
else:
for tool in self.tools:

View File

@ -19,6 +19,7 @@ CAD program, and create G-Code for Isolation routing.
- when saving a file from Code Editor and there is no object active then the OpenFileDialog filters are reset to FlatConfig files.
- reverted a change in GCode that might affect Gerber polarity change in Gerber parser
- ability to double click the FlatConfig files and open them in the FlatCAM Code Editor - fixed and verified
- fixed the Set To Origin function when Escape was clicked
23.02.2019