mirror of
https://github.com/davatorium/rofi.git
synced 2025-02-03 15:34:54 -05:00
[View] Update sidebar buttons when we have no prompt.
This commit is contained in:
parent
a399adfa38
commit
2a18a46b24
1 changed files with 5 additions and 5 deletions
|
@ -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 );
|
||||
|
|
Loading…
Add table
Reference in a new issue