On Tue, Sep 22, 2020 at 9:16 PM [email protected] <[email protected]>
wrote:

> After I deleted .leo\db folder, VR3 finally opened in an internal frame.
> Opening a floating VR3 window from the splitter context menu opened a
> second, floating window while leaving the previously opened internal pane
> alone.  I found I had to delete both databases in the db folder to get
> this to work reliably.
>
> I'm speculating that I had some layout data left over from using
> --use-docks that was getting reused, but who really knows?
>

--trace=cache will give you some idea of what is going on.

All these instances were still specific to the selected Leo outline.  I'm
> finding that I don't mind that so much for the internal pane.  I can have
> an open VR3 in several outlines, and when I select an outline, its instance
> of VR3 shows rendering for that pane.  So that's not really confusing or
> annoying, unlike having to have multiple free-floating windows open at the
> same time for the several outlines, which *is* annoying.
>

I agree. Per-commander (per-outline) VR3 panes aren't a problem unless they
are free floating.

So suppose you stick with the present scheme. The present ns_title
disambiguates the free-floating window. So the only problem is
saving/restoring the free floating vr3 window.

Alas, saving a "float-vr3" layout after creating a floating vr3 pane
doesn't seem to work.

Hmm.  The global layouts dict is never used! That must be wrong, because
the free_layout code in the FreeLayoutController (flc) class never accesses
'layouts'. However, flc.loadLayouts does access the 'ns_layouts' key from
g.app.db and the '_ns_layout' keys from c.db.

*Summary*

For now, the only change I would like *you* to make right now is to change
'viewrendered_default_layouts' to 'viewrendered3_default_layouts' in
ns_provide. This almost certainly will have no immediate effect, but it
should be done sometime.

Saving and restoring free_layout layouts is a separate issue from VR3. I
don't understand what VR3 is expected to do, if anything. I have just
created #1686 <https://github.com/leo-editor/leo-editor/issues/1686> for
this.

Edward

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/CAMF8tS2LPYkJUw6Tru6okTYBofS%2BKqKNVVRytuMip3cbcJHqBA%40mail.gmail.com.

Reply via email to