Thank you a bunch Jacob! This fixed my problem in the short term! Works as you said.
Edward/Terry, can you help explain what is happening and what is a more Leonic way of dealing with this issue. On Thursday, July 9, 2015 at 4:19:32 PM UTC-4, Jacob Peck wrote: > > It's a bit hacky, but you can replace 'c' with 'g.app.log.c' to get the > current active commander. I think. YMMV. > > -->Jake > > On 7/9/2015 3:22 PM, john lunzer wrote: > > I'm working on a plugin that right now I have implemented as a @command. > I'm creating a floating window that I would like to persist across > outlines. After creation I'm storing that window > in g.app.permanentScriptDict. Every time I run the command I look in > g.app.permanentScriptDict > for the window's key and then re-engage the window. > > The problem I am facing is that after creation when I reference the c > global variable anywhere in the command/script it always things it's the c > from the outline the window was first init-ed in. I'm not saving c > anywhere. I'm confused because I thought c was supposed to refer to the > current commander. > > I'm sure there is some detail of Leo that is simply escaping my > understanding but I'm thoroughly confused. Any light shed on this would be > awesome and much appreciated. > -- > 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] <javascript:>. > To post to this group, send email to [email protected] > <javascript:>. > Visit this group at http://groups.google.com/group/leo-editor. > For more options, visit https://groups.google.com/d/optout. > > > -- 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 http://groups.google.com/group/leo-editor. For more options, visit https://groups.google.com/d/optout.
