Since reloading settings will not close Leo, I don't see any reason to save any files except for unsaved settings files. Sometimes people leave unsaved files on purpose - in case they want to scrap their changes by closing an outline without saving - so let's not surprise those folks by saving their file unexpectedly.
On Wednesday, June 8, 2022 at 9:11:37 AM UTC-4 Edward K. Ream wrote: > On Tue, Jun 7, 2022 at 10:58 PM Félix <[email protected]> wrote: > >> 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? > > > The unsaved outlines could include myLeoSettings.leo (and even > leoSettings.leo), but yes, I suppose the code could just save those two (if > changed) and the currently active outline. > > I agree that trying to save an unnamed outline is unnecessary. > > Please feel free to submit a PR :-) > > 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/c4363571-9ba1-4df8-9c75-b04a33752f61n%40googlegroups.com.
