On Mar 26, 11:04 am, "Edward K. Ream" <[EMAIL PROTECTED]> wrote:
> No. You absolutely must not use @string when @bool is meant. It's way too > confusing to users. Please change this to something like > > @bool cleo_colors_file_nodes = True > > This should be feasible now that you know how to specify a default for > getBool. I should add that Leo's core code doesn't usually specify a default for @bool settings because those settings are defined in leoSettings.leo. This could be an issue if somebody started deleting settings in leoSettings.leo, but why would anyone do that :-) Rather than mess with leoSettings.leo, most people should just change myLeoSettings.leo. In other words, if you put your settings in leoSettings.leo, you can pretty much assume that getBool will return True or False or (at worst) None. But if None is, for some reason, dangerous, you can always specify an explicit default of True. Edward --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "leo-editor" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/leo-editor?hl=en -~----------~----~----~----~------~----~------~--~---
