On Monday, October 8, 2018 at 10:47:51 AM UTC-5, Edward K. Ream wrote:

I've added @button kill-leo to e.bat...
>
> import sys
> del g.app.db ['open-leo-files']
> sys.exit(1)
>

Using g.app.forgetOpenFile is safer, because it only removes one file:

import sys
g.app.forgetOpenFile(fn=c.fileName(), force=True)
sys.exit(1)

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 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