|
From: <pl...@pi...> - 2017-07-07 17:46:55
|
On 07/07/17 00:32, Daniel J Sebald wrote: > On 07/06/2017 06:15 PM, Daniel J Sebald wrote: >>> No, on the closing of the plot window at exit. It is still persistent >>> after exit. I'll look into the code around "Checking window 0" if there >>> might be something else at play. >> >> OK, this one was O.E. I looked in the window's configuration dialog and >> saw that there is a "persist" variable active. I must have set that a >> long time ago not realizing it is remembered between sessions, not >> present-session-only. > > There is a minor issue, which is that 'persist' and other wxConfig > settings are stored at wxt-window exit, rather than at the point of "OK" > or "Apply". Say for example: > > 1) Run 'gnuplot' and generate a WXT terminal window. Exit when > 'persist' is active, the window stays on screen. > > 2) Run 'gnuplot' again, generate a WXT plot and turn off 'persist'. Exit > and the most recent plot window closes, but the older plot is still > persistent, that's fine. > > 3) But now close that older plot window and 'persist' is turned back on > the next time gnuplot is run. > > Rare circumstances, and probably not worth a bug fix. > > Dan > > ---------- Why is persist being stored anywhere? Surlely this is just flag to gnuplot for whether to close the plot window on the way out. How is this a wxt config option which needs to be stored anywhere. It seems like faulty logic to me. Peter. |