mirror of
https://github.com/davatorium/rofi.git
synced 2025-07-31 21:59:25 -04:00
[Config] when parsing -theme- cmd option, allow throwing errors.
This commit is contained in:
parent
50ac47e24e
commit
8f1aa8481d
1 changed files with 3 additions and 9 deletions
|
@ -560,15 +560,9 @@ void config_parse_cmd_options(void) {
|
||||||
g_debug("theme: \"%s\"\n", str->str);
|
g_debug("theme: \"%s\"\n", str->str);
|
||||||
if (rofi_theme_parse_string(str->str) == 1) {
|
if (rofi_theme_parse_string(str->str) == 1) {
|
||||||
/** Failed to parse, try again as string. */
|
/** Failed to parse, try again as string. */
|
||||||
rofi_clear_error_messages();
|
g_strfreev(tokens);
|
||||||
g_string_assign(str, "");
|
g_string_free(str, TRUE);
|
||||||
config_parser_form_rasi_format(str, &(tokens[2]), count - 2,
|
return;
|
||||||
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_string_free(str, TRUE);
|
g_string_free(str, TRUE);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue