1.5.0 - Windows focus loss on batch convert deletion [Solved]

*** Please report new bugs here! ***

Moderators: XnTriq, helmut, xnview, Dreamer

CaspianRoach
Posts: 29
Joined: Sat Feb 08, 2020 1:35 pm

1.5.0 - Windows focus loss on batch convert deletion [Solved]

Post by CaspianRoach »

XnView: MP 1.5.0 - 64 bit
OS: Windows 10 64bit

When doing a Batch convert task with "delete original file" on, for every file deletion, Windows defocuses currently focused window, making typing anything in any window impossible until the Batch convert task is done.

Effect: Windows window focus is constantly repeatedly lost on any current window, making your OS essentially inoperable by keyboard while the operation is taking place

To reproduce:
1. Queue up a big batch convert with "Delete original file" checked and launch it
2. The window focus is now being removed from any currently focused window every time a file deletion is triggered

Cause: When my system was heavily loaded, I actually caught a glimpse of what causes this issue - every file deletion spawns a Windows "Deleting a file" pop-up window, which steals window focus immediately. But since it's usually an insanely fast operation on modern machines, it doesn't even get a chance to properly load.

Proposed solution - maybe it is possible to use commandline tools like 'del' to delete files instead? Or some other method that doesn't spawn default Windows pop-up for deleting a file? The catch with this is that it will not put the files into Recycle Bin, as it currently does. Maybe a separate checkmark to delete files permanently?

Alternative (worse) solution: only delete files after the entire batch convert is finished, that way the focus only gets stolen once and the deletion process will be visible.
User avatar
xnview
Author of XnView
Posts: 44615
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: 1.5.0 - Windows focus loss on batch convert deletion

Post by xnview »

yes known issue, you can disable 'recycle bin'
Pierre.
CaspianRoach
Posts: 29
Joined: Sat Feb 08, 2020 1:35 pm

Re: 1.5.0 - Windows focus loss on batch convert deletion

Post by CaspianRoach »

Fixed in 1.5.3 by fix #2925 , safe to close.