- fixed the warning that old preferences found even for new installation

- in Paint Tool fixed the message to select a polygon when using the Selection: Single Polygon being overwritten by the "Grid disabled" message
This commit is contained in:
Marius Stanciu
2020-06-01 03:45:34 +03:00
committed by Marius
parent 440d0dde02
commit c1fb0b5cdb
6 changed files with 25 additions and 21 deletions

View File

@@ -1429,8 +1429,6 @@ class ToolPaint(AppTool, Gerber):
outname=self.o_name)
elif self.select_method == _("Polygon Selection"):
self.app.inform.emit('[WARNING_NOTCL] %s' % _("Click on a polygon to paint it."))
# disengage the grid snapping since it may be hard to click on polygons with grid snapping on
if self.app.ui.grid_snap_btn.isChecked():
self.grid_status_memory = True
@@ -1438,6 +1436,8 @@ class ToolPaint(AppTool, Gerber):
else:
self.grid_status_memory = False
self.app.inform.emit('[WARNING_NOTCL] %s' % _("Click on a polygon to paint it."))
self.mr = self.app.plotcanvas.graph_event_connect('mouse_release', self.on_single_poly_mouse_release)
self.kp = self.app.plotcanvas.graph_event_connect('key_press', self.on_key_press)