close simulator with CallAfter

Kaalleen 2024-03-30 18:25:43 +01:00
rodzic f40c89a4a6
commit 60c36c3e86
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -1126,8 +1126,8 @@ class SplitSimulatorWindow(wx.Frame):
def on_close(self, event):
if self.detached_simulator_frame:
self.detached_simulator_frame.Destroy()
self.Destroy()
wx.CallAfter(self.detached_simulator_frame.Destroy)
wx.CallAfter(self.Destroy)
def toggle_detach_simulator(self):
if self.detached_simulator_frame: