--- a/LPCBeremiz.py Tue Dec 18 14:43:49 2018 +0100
+++ b/LPCBeremiz.py Fri Jan 25 14:09:27 2019 +0100
@@ -78,18 +78,12 @@
Frame doesn't really close, but just hide.
Message is sent to Composer to signal app being closed.
- if self.CheckSaveBeforeClosing(_("Close Application")):
- self.CTR.ResetAppFrame(self.lpcberemiz_cmd_pipe)
- self.CTR.KillDebugThread()
- self.KillLocalRuntime()
+ if self.TryCloseFrame(): + # "Exit" being sent by composer after "Closed" sent by IDE self.lpcberemiz_cmd_pipe.write("Closed\n")
+ # Prevents "Exit" command to trigger this call a second time + self.Unbind(wx.EVT_CLOSE) --- a/LPCCommand.py Tue Dec 18 14:43:49 2018 +0100
+++ b/LPCCommand.py Fri Jan 25 14:09:27 2019 +0100
@@ -139,7 +139,7 @@
self.RefreshTimer.start()
self.Launcher.app.ExitMainLoop()