summaryrefslogtreecommitdiff
path: root/lib/extensions/params.py
diff options
context:
space:
mode:
authorKaalleen <36401965+kaalleen@users.noreply.github.com>2024-03-30 17:51:21 +0100
committerGitHub <noreply@github.com>2024-03-30 17:51:21 +0100
commitf40c89a4a616f1629784e91c36e2ca9526f0cb8b (patch)
tree66a892d8e78ddef701aa80adcbdd9e3f422015ef /lib/extensions/params.py
parentf605f257e02fa6f01505ae5cb6589a9bc0e8a6f2 (diff)
avoid RuntimeError by closing params with CallAfter (#2809)
Diffstat (limited to 'lib/extensions/params.py')
-rw-r--r--lib/extensions/params.py2
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: