From ca02ac5b015dd64ebe3d13b8cc2021535a369161 Mon Sep 17 00:00:00 2001 From: Kaalleen <36401965+kaalleen@users.noreply.github.com> Date: Thu, 9 Jan 2025 17:06:07 +0100 Subject: save and reload simulator speed (optionally) (#3420) --- lib/gui/simulator/drawing_panel.py | 3 ++- 1 file changed, 2 insertions(+), 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 cb70db2d..ced11f00 100644 --- a/lib/gui/simulator/drawing_panel.py +++ b/lib/gui/simulator/drawing_panel.py @@ -65,7 +65,7 @@ class DrawingPanel(wx.Panel): self.background_color = None # desired simulation speed in stitches per second - self.speed = 16 + self.speed = global_settings['simulator_speed'] self.Bind(wx.EVT_PAINT, self.OnPaint) self.Bind(wx.EVT_SIZE, self.choose_zoom_and_pan) @@ -399,6 +399,7 @@ class DrawingPanel(wx.Panel): def set_speed(self, speed): self.speed = speed + global_settings['simulator_speed'] = speed def forward(self): self.direction = 1 -- cgit v1.2.3