diff options
| author | Kaalleen <36401965+kaalleen@users.noreply.github.com> | 2024-08-04 18:34:50 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-08-04 18:34:50 +0200 |
| commit | 17b88ce2c14a0802e18e90d8dd142224013dfb15 (patch) | |
| tree | 688d78c639698345bb692f09c74328873571dc8d /lib/gui/simulator/simulator_preferences.py | |
| parent | 1a0bb1b8fff89b22ea1cbe53bc6a59ed95de691b (diff) | |
Simulator: toggle info and preferences dialog (#3115)
Co-authored-by: Lex Neva
Diffstat (limited to 'lib/gui/simulator/simulator_preferences.py')
| -rw-r--r-- | lib/gui/simulator/simulator_preferences.py | 4 |
1 files changed, 2 insertions, 2 deletions
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() |
