Skip to content
Snippets Groups Projects
Commit 99f1bf40 authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

correct invalid theme name in old config file

parent 1f36461b
No related branches found
No related tags found
No related merge requests found
......@@ -1059,6 +1059,9 @@ class Interface:
gajim.config.add_per('statusmsg', msg)
gajim.config.set_per('statusmsg', msg, 'message', gajim.config.statusmsg_default[msg])
#add default themes if there is not in the config file
theme = gajim.config.get('roster_theme')
if not theme in gajim.config.get_per('themes'):
gajim.config.set('roster_theme', 'green')
if len(gajim.config.get_per('themes')) == 0:
d = ['accounttextcolor', 'accountbgcolor', 'accountfont',
'grouptextcolor', 'groupbgcolor', 'groupfont', 'contacttextcolor',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment