mirror of
https://github.com/davatorium/rofi.git
synced 2024-11-18 13:54:36 -05:00
Correctly switch to other RofiViewState.
* Triggers when error message occurs on handling action. * Reproducable with broken drun file. (give a non-existing path)
This commit is contained in:
parent
727e3dc51a
commit
d82231d0df
1 changed files with 6 additions and 2 deletions
|
@ -1378,8 +1378,12 @@ void rofi_view_maybe_update ( RofiViewState *state )
|
|||
if ( rofi_view_get_completed ( state ) ) {
|
||||
// This menu is done.
|
||||
rofi_view_finalize ( state );
|
||||
// cleanup
|
||||
if ( rofi_view_get_active () == NULL ) {
|
||||
// If there a state. (for example error) reload it.
|
||||
state = rofi_view_get_active ();
|
||||
|
||||
// cleanup, if no more state to display.
|
||||
if ( state == NULL ) {
|
||||
// Quit main-loop.
|
||||
rofi_quit_main_loop ();
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue