Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5acdf93

Browse files
committed
Saving a Keyset w/o making changes (by using the "Save as New Custom Key Set"
button) caused IDLE to fail on restart (no new keyset was created in config-keys.cfg). Also true for Theme/highlights. Python Bug 1064535. M configDialog.py
1 parent 49d4213 commit 5acdf93

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

Lib/idlelib/configDialog.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1165,6 +1165,9 @@ def SaveAllChangedConfigs(self):
11651165
cfgTypeHasChanges = True
11661166
if cfgTypeHasChanges:
11671167
idleConf.userCfg[configType].Save()
1168+
for configType in ['keys', 'highlight']:
1169+
# save these even if unchanged!
1170+
idleConf.userCfg[configType].Save()
11681171
self.ResetChangedItems() #clear the changed items dict
11691172

11701173
def ActivateConfigChanges(self):

0 commit comments

Comments
 (0)