mirror of
https://github.com/python/cpython.git
synced 2025-08-24 10:45:53 +00:00
bpo-30779: IDLE: fix changes.delete_section calls in configdialog (#2667)
Also improve test of config.ConfigChanges.delete_section. Original patch by Cheryl Sabella.
This commit is contained in:
parent
f52325598e
commit
6d13b22e3a
3 changed files with 9 additions and 5 deletions
|
@ -839,7 +839,7 @@ class ConfigDialog(Toplevel):
|
|||
return
|
||||
self.deactivate_current_config()
|
||||
# Remove key set from changes, config, and file.
|
||||
changes.remove(keyset_name)
|
||||
changes.delete_section('keys', keyset_name)
|
||||
# Reload user key set list.
|
||||
item_list = idleConf.GetSectionList('user', 'keys')
|
||||
item_list.sort()
|
||||
|
@ -873,7 +873,7 @@ class ConfigDialog(Toplevel):
|
|||
return
|
||||
self.deactivate_current_config()
|
||||
# Remove theme from changes, config, and file.
|
||||
changes.delete_section('highlight')
|
||||
changes.delete_section('highlight', theme_name)
|
||||
# Reload user theme list.
|
||||
item_list = idleConf.GetSectionList('user', 'highlight')
|
||||
item_list.sort()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue