# HG changeset patch # User laurent # Date 1303376803 -7200 # Node ID 6c919bc1551d9df94c5ed74df47e12d87bcf4573 # Parent 6fbfd3bf29270db831db8a553d7b00b631c66b8a Adding support for saving frame size while closing and restore it at next launch diff -r 6fbfd3bf2927 -r 6c919bc1551d Beremiz.py --- a/Beremiz.py Tue Apr 19 15:28:35 2011 +0200 +++ b/Beremiz.py Thu Apr 21 11:06:43 2011 +0200 @@ -434,7 +434,6 @@ def __init__(self, parent, projectOpen=None, buildpath=None, plugin_root=None, debug=True): IDEFrame.__init__(self, parent, debug) - self.Config = wx.ConfigBase.Get() self.Log = LogPseudoFile(self.LogConsole,self.RiseLogConsole) self.local_runtime = None @@ -567,6 +566,9 @@ if self.PluginRoot is not None: self.PluginRoot.KillDebugThread() self.KillLocalRuntime() + + self.SaveFrameSize() + event.Skip() else: event.Veto() diff -r 6fbfd3bf2927 -r 6c919bc1551d LPCBeremiz.py --- a/LPCBeremiz.py Tue Apr 19 15:28:35 2011 +0200 +++ b/LPCBeremiz.py Thu Apr 21 11:06:43 2011 +0200 @@ -909,6 +909,8 @@ self.PluginRoot.KillDebugThread() self.KillLocalRuntime() + self.SaveFrameSize() + lpcberemiz_cmd.Log.write("Closed\n") event.Veto()