|
@@ -49,6 +49,8 @@ proc getPrefs*(id: string; cfg: Config): Prefs =
|
|
|
withDb:
|
|
withDb:
|
|
|
try:
|
|
try:
|
|
|
result.getOne("id = ?", id)
|
|
result.getOne("id = ?", id)
|
|
|
|
|
+ if result.theme.len == 0:
|
|
|
|
|
+ result.theme = cfg.defaultTheme
|
|
|
except KeyError:
|
|
except KeyError:
|
|
|
result = getDefaultPrefs(cfg)
|
|
result = getDefaultPrefs(cfg)
|
|
|
|
|
|