[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
1 changed files with 1 additions and 1 deletions

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 );