summaryrefslogtreecommitdiff
path: root/lib/extensions
diff options
context:
space:
mode:
authorLex Neva <github.com@lexneva.name>2018-08-26 15:34:13 -0400
committerLex Neva <github.com@lexneva.name>2018-08-26 15:34:13 -0400
commite854df43073ce3158654b0db304edd0bba7a7d6d (patch)
tree0b36f611faefc87d770226d4ed8563d46e790e78 /lib/extensions
parenta355af287484a62a021808b4ced20c4b85877759 (diff)
handle auto-refresh from Params
Diffstat (limited to 'lib/extensions')
-rw-r--r--lib/extensions/params.py11
1 files changed, 1 insertions, 10 deletions
diff --git a/lib/extensions/params.py b/lib/extensions/params.py
index 9bde2a66..73ce069d 100644
--- a/lib/extensions/params.py
+++ b/lib/extensions/params.py
@@ -421,16 +421,7 @@ class SettingsFrame(wx.Frame):
stitch_plan = patches_to_stitch_plan(patches)
if self.simulate_window:
self.simulate_window.stop()
- self.simulate_window.load(stitch_plan=stitch_plan)
- self.simulate_window.calculate_dimensions()
-
- children = self.simulate_window.GetChildren()
- for child in children:
- if isinstance(child, wx.Slider):
- child.Destroy()
- self.simulate_window.set_slider()
-
- self.simulate_window.Layout()
+ self.simulate_window.load(stitch_plan)
else:
params_rect = self.GetScreenRect()
simulator_pos = params_rect.GetTopRight()