diff options
| author | Kaalleen <36401965+kaalleen@users.noreply.github.com> | 2024-03-30 17:51:21 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-03-30 17:51:21 +0100 |
| commit | f40c89a4a616f1629784e91c36e2ca9526f0cb8b (patch) | |
| tree | 66a892d8e78ddef701aa80adcbdd9e3f422015ef | |
| parent | f605f257e02fa6f01505ae5cb6589a9bc0e8a6f2 (diff) | |
avoid RuntimeError by closing params with CallAfter (#2809)
| -rw-r--r-- | lib/extensions/params.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/extensions/params.py b/lib/extensions/params.py index 81e4bd53..ea19672f 100644 --- a/lib/extensions/params.py +++ b/lib/extensions/params.py @@ -608,7 +608,7 @@ class SettingsPanel(wx.Panel): self.apply(event) def close(self): - self.GetTopLevelParent().Close() + wx.CallAfter(self.GetTopLevelParent().Close) def cancel(self, event): if self.cancel_hook: |
