From 17b88ce2c14a0802e18e90d8dd142224013dfb15 Mon Sep 17 00:00:00 2001 From: Kaalleen <36401965+kaalleen@users.noreply.github.com> Date: Sun, 4 Aug 2024 18:34:50 +0200 Subject: Simulator: toggle info and preferences dialog (#3115) Co-authored-by: Lex Neva --- lib/gui/simulator/simulator_preferences.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/gui/simulator/simulator_preferences.py') diff --git a/lib/gui/simulator/simulator_preferences.py b/lib/gui/simulator/simulator_preferences.py index 9954c8f2..d42de4f0 100644 --- a/lib/gui/simulator/simulator_preferences.py +++ b/lib/gui/simulator/simulator_preferences.py @@ -61,7 +61,7 @@ class SimulatorPreferenceDialog(wx.Dialog): def on_apply(self, event): global_settings['simulator_line_width'] = self.line_width.GetValue() global_settings['simulator_npp_size'] = self.npp_size.GetValue() - self.Destroy() + self.Close() def on_cancel(self, event): global_settings['simulator_line_width'] = self.line_width_value @@ -69,4 +69,4 @@ class SimulatorPreferenceDialog(wx.Dialog): if self.drawing_panel.loaded: self.drawing_panel.update_pen_size() self.drawing_panel.Refresh() - self.Destroy() + self.Close() -- cgit v1.2.3