mirror of
https://github.com/robweber/xbmcbackup.git
synced 2024-11-14 12:25:48 +01:00
Fix crash where dict may not contain settings id key. Common occurence if restore platform differs from backup platform. (#212)
This commit is contained in:
parent
c951dce5bd
commit
6294b5ce74
@ -33,6 +33,8 @@ class GuiSettingsManager:
|
||||
|
||||
restoreCount = 0
|
||||
for aSetting in restoreSettings:
|
||||
# Ensure key exists before referencing
|
||||
if(aSetting['id'] in settingsDict.values()):
|
||||
# only update a setting if its different than the current (action types have no value)
|
||||
if(aSetting['type'] != 'action' and settingsDict[aSetting['id']] != aSetting['value']):
|
||||
if(utils.getSettingBool('verbose_logging')):
|
||||
|
Loading…
Reference in New Issue
Block a user