forked from e16/e16
1
0
Fork 0

Fix theme variant handling

The variant wasn't remembered persistently.

Also change the theme variant delimiter to ':'.
This commit is contained in:
Kim Woelders 2018-01-21 15:49:56 +01:00
parent 92cb89490b
commit 63169e79d0
1 changed files with 9 additions and 3 deletions

View File

@ -348,7 +348,7 @@ ThemeFind(const char *theme)
if (p)
snprintf(name, sizeof(name), "%s", p);
s = strchr(name, '=');
s = strchr(name, ':');
if (s)
{
*s++ = '\0';
@ -366,8 +366,14 @@ ThemeFind(const char *theme)
Mode.theme.paths);
}
Efree(Conf.theme.name);
Conf.theme.name = ThemePathName(path);
if (theme)
{
Efree(Conf.theme.name);
if (isfile(theme))
Conf.theme.name = ThemePathName(path);
else
Conf.theme.name = Estrdup(theme);
}
Efree(Mode.theme.path);
Mode.theme.path = (path) ? path : Estrdup("-");