On Fri, Jul 19, 2024 at 6:00 AM Edward K. Ream <edream...@gmail.com> wrote:

> Here is the dynamic version:

Heh. The dynamic version will work even if *both* VR and VR3 are running.
At the top level, change "elif" to if:

pc = g.app.pluginsController
if pc.isLoaded('leo.plugins.viewrendered3'):
    cmd = 'vr3-show'
    import leo.plugins.viewrendered3 as vx
    switch_layout(cmd, vx)
if pc.isLoaded('leo.plugins.viewrendered'):
    cmd = 'vr-toggle'
    import leo.plugins.viewrendered as vx
    switch_layout(cmd, vx)

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 leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/CAMF8tS2%3DYPOXkjRdFOJfYPbzGxt8b4tsZ7PCWc3r2nSKfPJ%2BRg%40mail.gmail.com.

Reply via email to