mirror of https://github.com/davatorium/rofi.git
[View] Update sidebar buttons when we have no prompt.
This commit is contained in:
parent
a399adfa38
commit
2a18a46b24
|
@ -1842,13 +1842,13 @@ void rofi_view_switch_mode ( RofiViewState *state, Mode *mode )
|
||||||
// Update prompt;
|
// Update prompt;
|
||||||
if ( state->prompt ) {
|
if ( state->prompt ) {
|
||||||
rofi_view_update_prompt ( state );
|
rofi_view_update_prompt ( state );
|
||||||
if ( config.sidebar_mode ) {
|
}
|
||||||
|
if ( config.sidebar_mode && state->sidebar_bar ) {
|
||||||
for ( unsigned int j = 0; j < state->num_modi; j++ ) {
|
for ( unsigned int j = 0; j < state->num_modi; j++ ) {
|
||||||
const Mode * mode = rofi_get_mode ( j );
|
const Mode * mode = rofi_get_mode ( j );
|
||||||
textbox_font ( state->modi[j], ( mode == state->sw ) ? HIGHLIGHT : NORMAL );
|
textbox_font ( state->modi[j], ( mode == state->sw ) ? HIGHLIGHT : NORMAL );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
rofi_view_restart ( state );
|
rofi_view_restart ( state );
|
||||||
state->reload = TRUE;
|
state->reload = TRUE;
|
||||||
state->refilter = TRUE;
|
state->refilter = TRUE;
|
||||||
|
|
Loading…
Reference in New Issue