1
0
Fork 0
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:
Dave Davenport 2021-08-17 16:43:45 +02:00 committed by Dave Davenport
parent a3cf53d09f
commit 68a14d3b2c

View file

@ -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 );