On Sun, 31 Jul 2016 02:52:12 -0700 (PDT)
rengel <[email protected]> wrote:

> I understand, that I can save and restore Leo sessions by using the
> command line arguments '--session-save' and '--session-restore'.
> This works fine with open files, but what about the size and position
> of the Leo window and the position of the splitter?
> 
> From my work with Qt I know that QSettings is a *very* elegant an 
> convenient way to save and restore state.

Thinking aloud:

Storing state's not a, problem Leo's doing that already.

For the window position, that seems to be saved, for me, in Windows,
based on the path to the .leo file.  I wonder if it's different and /
or not saved / restored at all, with sessions.  It's probably saved in
Linux too, I use a tiling window manager (i3), so I wouldn't know.

Splitter position, probably depends on whether an layout's been saved /
loaded for that outline or not.  Once it has, the last saved / loaded
layout, incl. splitter position, should always be applied.  I'm not
sure how the defaults work if no layout's ever been applied.

So, the window position probably needs investigation for behavior in
sessions. The splitter position - the layout might need explicitly
saving in --*-session modes.

Cheers -Terry

> Reinhard
> 

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.

Reply via email to