1
0
Fork 0
mirror of https://github.com/davatorium/rofi.git synced 2024-11-18 13:54:36 -05:00

[Config] when parsing -theme- cmd option, allow throwing errors.

This commit is contained in:
Dave Davenport 2021-12-02 08:51:32 +01:00
parent 50ac47e24e
commit 8f1aa8481d

View file

@ -560,15 +560,9 @@ void config_parse_cmd_options(void) {
g_debug("theme: \"%s\"\n", str->str);
if (rofi_theme_parse_string(str->str) == 1) {
/** Failed to parse, try again as string. */
rofi_clear_error_messages();
g_string_assign(str, "");
config_parser_form_rasi_format(str, &(tokens[2]), count - 2,
stored_argv[in + 1], TRUE);
g_debug("theme: \"%s\"\n", str->str);
if (rofi_theme_parse_string(str->str) == 1) {
/** Failed to parse, try again as string. */
rofi_clear_error_messages();
}
g_strfreev(tokens);
g_string_free(str, TRUE);
return;
}
g_string_free(str, TRUE);
}