(operate_single_file): clarify creation of file operation UI.

Create UI to show confirmation dialog in case of foreground operation
regardless of ENABLE_BACKGROUND.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
Andrew Borodin 2023-03-12 10:31:53 +03:00
parent 47da3a764a
commit 6329771fc0

View File

@ -2101,10 +2101,11 @@ operate_single_file (const WPanel * panel, file_op_total_context_t * tctx, file_
case OP_MOVE:
#ifdef ENABLE_BACKGROUND
/* create UI to show confirmation dialog */
if (!mc_global.we_are_background)
file_op_context_create_ui (ctx, TRUE, FILEGUI_DIALOG_ONE_ITEM);
#endif
/* create UI to show confirmation dialog */
file_op_context_create_ui (ctx, TRUE, FILEGUI_DIALOG_ONE_ITEM);
if (is_file)
value = move_file_file (panel, tctx, ctx, src, dest);
else