mirror of
https://github.com/davatorium/rofi.git
synced 2024-11-11 13:50:48 -05:00
[Rofi] Clear old theme before loading new one on -theme argument.
This commit is contained in:
parent
a3cf53d09f
commit
68a14d3b2c
1 changed files with 1 additions and 0 deletions
|
@ -964,6 +964,7 @@ int main ( int argc, char *argv[] )
|
||||||
find_arg_str ( "-theme", &( config.theme ) );
|
find_arg_str ( "-theme", &( config.theme ) );
|
||||||
if ( config.theme ) {
|
if ( config.theme ) {
|
||||||
TICK_N ( "Parse theme" );
|
TICK_N ( "Parse theme" );
|
||||||
|
rofi_theme_reset ( );
|
||||||
if ( rofi_theme_parse_file ( config.theme ) ) {
|
if ( rofi_theme_parse_file ( config.theme ) ) {
|
||||||
// TODO: instantiate fallback theme.?
|
// TODO: instantiate fallback theme.?
|
||||||
rofi_theme_free ( rofi_theme );
|
rofi_theme_free ( rofi_theme );
|
||||||
|
|
Loading…
Reference in a new issue