rfd icon indicating copy to clipboard operation
rfd copied to clipboard

File already exists widow is not in foreground (Windows)

Open Ultraxime opened this issue 1 year ago • 3 comments

Hello,

I'm using rfd to handle opening and saving files and one of my users encountered an issue on Windows When trying to save a file to an existing one, and the warning dialog did not appear in foreground but in background.

It seems to have appeared in a recent update of rfd.

Ultraxime avatar Jul 24 '24 17:07 Ultraxime

Can confirm, same issue here.

oswald2 avatar Oct 22 '24 14:10 oswald2

Having the same issue here, basically makes the save dialog unusable.

Jamzy01 avatar Apr 26 '25 02:04 Jamzy01

After investigating, it seems it comes from the focus stealing prevention from windows. To circumvent this issue you need to give to RFD the windows handle of your current window. Sadly depending on the Framework you are using, the window handle is not always exposed

Ultraxime avatar Apr 26 '25 04:04 Ultraxime