1
0
Fork 0
mirror of https://github.com/davatorium/rofi.git synced 2024-11-18 13:54:36 -05:00

[DMenu] Do not show the Loading.. overlay when skipping loading stage.

This commit is contained in:
Dave Davenport 2017-07-17 21:42:59 +02:00
parent 603676e640
commit fd146b0519

View file

@ -734,7 +734,7 @@ int dmenu_switcher_dialog ( void )
find_arg_str ( "-p", &( dmenu_mode.display_name ) );
RofiViewState *state = rofi_view_create ( &dmenu_mode, input, menu_flags, dmenu_finalize );
// @TODO we should do this better.
if ( async ) {
if ( async && (pd->cancel != NULL ) ) {
rofi_view_set_overlay ( state, "Loading.. " );
}
rofi_view_set_selected_line ( state, pd->selected_line );