summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorKaalleen <36401965+kaalleen@users.noreply.github.com>2024-07-20 09:22:35 +0200
committerGitHub <noreply@github.com>2024-07-20 09:22:35 +0200
commit94caf919ff7cd5f2114fcb0f4d385f63197d354b (patch)
treec6fcbd368ca06fbcc4a3b3c59a28650d8f919f05 /lib
parent252818f7a9f6242d7bc37c9a50f3e4ae080a4949 (diff)
prevent showing RuntimeError on_stitch_plan_rendered (#3097)
Diffstat (limited to 'lib')
-rwxr-xr-xlib/extensions/params.py10
1 files changed, 7 insertions, 3 deletions
diff --git a/lib/extensions/params.py b/lib/extensions/params.py
index 9a51226f..dd5c427c 100755
--- a/lib/extensions/params.py
+++ b/lib/extensions/params.py
@@ -595,9 +595,13 @@ class SettingsPanel(wx.Panel):
return tabs
def on_stitch_plan_rendered(self, stitch_plan):
- self.simulator.stop()
- self.simulator.load(stitch_plan)
- self.simulator.go()
+ try:
+ self.simulator.stop()
+ self.simulator.load(stitch_plan)
+ self.simulator.go()
+ except RuntimeError:
+ # this can happen when they close the window at a bad time
+ pass
def _hide_warning(self):
self.warning_panel.clear()