[View] Update sidebar buttons when we have no prompt.

This commit is contained in:
Dave Davenport 2017-06-06 09:40:56 +02:00
parent a399adfa38
commit 2a18a46b24
1 changed files with 5 additions and 5 deletions

View File

@ -1842,11 +1842,11 @@ void rofi_view_switch_mode ( RofiViewState *state, Mode *mode )
// Update prompt;
if ( state->prompt ) {
rofi_view_update_prompt ( state );
if ( config.sidebar_mode ) {
for ( unsigned int j = 0; j < state->num_modi; j++ ) {
const Mode * mode = rofi_get_mode ( j );
textbox_font ( state->modi[j], ( mode == state->sw ) ? HIGHLIGHT : NORMAL );
}
}
if ( config.sidebar_mode && state->sidebar_bar ) {
for ( unsigned int j = 0; j < state->num_modi; j++ ) {
const Mode * mode = rofi_get_mode ( j );
textbox_font ( state->modi[j], ( mode == state->sw ) ? HIGHLIGHT : NORMAL );
}
}
rofi_view_restart ( state );