I'm looking at the reload-settings command, which has the following doc 
string : "*Reload settings for the selected outline, saving it if 
necessary."* and i'm wondering why it tries to save all unsaved opened 
documents instead of only the currently active one?

I had to look at the code to understand why i was even prompted to save a 
file first while trying out this command...




*    # Save any changes so they can be seen.    for c2 in 
g.app.commanders():        if c2.isChanged():            c2.save()*

What felt most weird, is that i got prompted to save a file for the new, 
untitled document that was almost empty and unrelated to the document I was 
working on and needed its settings to be reloaded (as I had just changed 
some headlines in child nodes of an @settings node)

If it is desired that it saves all unsaved files currently opened, would it 
make sense that it does so only for named files? therefore not interrupting 
the user with a save-file dialog (which btw didnt have title other than, 
'save' so i didnt even know what i was saving, took me a while to 
understand it was some other new untitled document i happen to have in the 
Leo editor at the same time.) ?

--
Félix

-- 
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/826cd184-fd12-41d5-bca8-5494e094db37n%40googlegroups.com.

Reply via email to