From dd63ef093562b8ece48ff215c038e42120a9817e Mon Sep 17 00:00:00 2001 From: Kaalleen <36401965+kaalleen@users.noreply.github.com> Date: Sat, 29 Mar 2025 05:23:49 +0000 Subject: simulator: add button to toggle crosshair (#3616) --- lib/gui/simulator/drawing_panel.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/gui/simulator/drawing_panel.py') diff --git a/lib/gui/simulator/drawing_panel.py b/lib/gui/simulator/drawing_panel.py index 6954f17d..1ffdfaa4 100644 --- a/lib/gui/simulator/drawing_panel.py +++ b/lib/gui/simulator/drawing_panel.py @@ -200,7 +200,7 @@ class DrawingPanel(wx.Panel): last_stitch = stitches[-1] break - if last_stitch: + if last_stitch and self.view_panel.btnCursor.GetValue(): self.draw_crosshair(last_stitch[0], last_stitch[1], canvas, transform) canvas.EndLayer() -- cgit v1.2.3