Commit c257eda
committed
gh-89520: IDLE - Fix default value logic in configdialog load_extensions
Fix two issues in load_extensions:
1. def_str (the "default" value) was sourced from user config when the
option existed there. This meant opening the extensions dialog could
silently revert user customizations, since the user's value would be
treated as the default and then removed. Now prefers default config,
falling back to user config only for user-only extensions.
2. The value lookup was skipping user config for default-only options.
Restore the original behavior of always trying user config first
(which returns def_obj as fallback when the option is absent).1 parent 5a2d995 commit c257eda
1 file changed
Lines changed: 6 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1978 | 1978 | | |
1979 | 1979 | | |
1980 | 1980 | | |
1981 | | - | |
1982 | | - | |
| 1981 | + | |
| 1982 | + | |
1983 | 1983 | | |
1984 | 1984 | | |
1985 | | - | |
| 1985 | + | |
1986 | 1986 | | |
1987 | 1987 | | |
1988 | 1988 | | |
| |||
1995 | 1995 | | |
1996 | 1996 | | |
1997 | 1997 | | |
1998 | | - | |
1999 | | - | |
2000 | | - | |
2001 | | - | |
2002 | | - | |
2003 | | - | |
2004 | | - | |
2005 | | - | |
| 1998 | + | |
| 1999 | + | |
| 2000 | + | |
2006 | 2001 | | |
2007 | 2002 | | |
2008 | 2003 | | |
| |||
0 commit comments