mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
further work on new config system;
recent files menu
This commit is contained in:
parent
03594bbb0e
commit
1d46e40f58
3 changed files with 79 additions and 8 deletions
|
@ -1072,12 +1072,9 @@ class ConfigDialog(Toplevel):
|
|||
"""
|
||||
save all configuration changes to user config files.
|
||||
"""
|
||||
#if self.changedItems['main'].has_key('HelpFiles'):
|
||||
#this section gets completely replaced
|
||||
print idleConf.GetAllExtraHelpSourcesList()
|
||||
idleConf.userCfg['main'].remove_section('HelpFiles')
|
||||
idleConf.userCfg['main'].Save()
|
||||
print idleConf.GetAllExtraHelpSourcesList()
|
||||
for configType in self.changedItems.keys():
|
||||
cfgTypeHasChanges=0
|
||||
for section in self.changedItems[configType].keys():
|
||||
|
@ -1086,7 +1083,6 @@ class ConfigDialog(Toplevel):
|
|||
if self.SetUserValue(configType,section,item,value):
|
||||
cfgTypeHasChanges=1
|
||||
if cfgTypeHasChanges:
|
||||
print configType,'- changed'
|
||||
idleConf.userCfg[configType].Save()
|
||||
self.ResetChangedItems() #clear the changed items dict
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue