[Theme] Add sidebar as alias to mode-switcher

This commit is contained in:
Dave Davenport 2019-08-24 11:04:45 +02:00
parent aa35ecc40a
commit c3caa20df8
1 changed files with 1 additions and 1 deletions

View File

@ -1647,7 +1647,7 @@ static void rofi_view_add_widget ( RofiViewState *state, widget *parent_widget,
/**
* MODE SWITCHER
*/
else if ( strcmp ( name, "mode-switcher" ) == 0 ) {
else if ( strcmp ( name, "mode-switcher" ) == 0 || strcmp ( name, "sidebar" ) == 0 ) {
if ( state->sidebar_bar != NULL ) {
g_error ( "Mode-switcher can only be added once to the layout." );
return;