Skip to content

Commit

Permalink
Merge pull request #56 from Yutsuten/fix/global-settings
Browse files Browse the repository at this point in the history
Fix exception raised when closing preferences
  • Loading branch information
Yutsuten authored May 12, 2020
2 parents d0f7b0c + 803f5a4 commit 226e3c3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lifedrain/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,8 @@ def preferences_save(pref):
conf['barStyle'] = form.styleList.currentIndex()
conf['stopOnAnswer'] = form.stopOnAnswer.isChecked()
conf['disable'] = not form.enableAddon.isChecked()
conf.pop('barBgColor', None)
if 'barBgColor' in conf:
del conf['barBgColor']
return conf

def deck_settings_load(self, settings, current_life):
Expand Down

0 comments on commit 226e3c3

Please sign in to comment.