[feat] - browser mode - autofocus cause video file lock

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

Moderators: helmut, XnTriq, xnview, Dreamer

Post Reply
User avatar
user0
XnThusiast
Posts: 2414
Joined: Sat May 09, 2015 9:37 am

[feat] - browser mode - autofocus cause video file lock

Post by user0 »

XnView MP 1.3.0 64bits
Windows10 64bit (21H1)


XnViewMP in Browser mode switchs focus to the file that has been renamed in File explorer.
That cause file lock in case of video file.

To reproduce:
1. download XnViewMP archive, extract and run program
2. place video and image file(s) in the same folder
3. open folder in Browser mode (eg open image and press Enter)
4. rename video file in windows File explorer (it shall be succesful)
what happens: XnViewMP (in Browser mode) automatically updates file list, place newly renamed file in the end of this list and changes focus to this file and if Preview panel is on (default state) that cause file lock.
5. try to rename/move/delete video file in windows File explorer.

I also tried to untick the following checkboxes in Settings, but it does not help:
- Catalog -> Enable Catalog
- View -> Misc -> Show Video, Autoplay (video), Loop video playing

Actual behaviour:
When file renamed outside of XnViewMP (eg in File Explorer),
XnViewMP (in Browser mode) automatically:
- updates file list and places newly renamed file in the end
- sets focus on this newly renamed file

Expected behaviour:
When file renamed outside of XnViewMP (eg in File Explorer),
XnViewMP (in Browser mode) automatically:
- should updates file list and sort files accordingly (eg A-Z)
- should keep existing focus
Attachments
video_file_lock.png
Last edited by user0 on Fri Jan 27, 2023 6:19 pm, edited 22 times in total.
User avatar
xnview
Author of XnView
Posts: 46235
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: 1.3 BUG - video file lock

Post by xnview »

you can always reproduce, i can't here
Pierre.
User avatar
user0
XnThusiast
Posts: 2414
Joined: Sat May 09, 2015 9:37 am

Re: 1.3 BUG - video file lock

Post by user0 »

I have updated steps to reproduse and actual/expected behaviour.
Please try again.
User avatar
xnview
Author of XnView
Posts: 46235
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: 1.3 BUG - video file lock

Post by xnview »

The movie file is selected 'Settings>File list>Auto select new files'
Pierre.
User avatar
user0
XnThusiast
Posts: 2414
Joined: Sat May 09, 2015 9:37 am

Re: 1.3 BUG - browser mode - autofocus cause video file lock

Post by user0 »

Thanks, Pierre.
Unticking these 2 checkboxes solve this issue:
☑ Automatically select new files
☑ New files are added at the end of the list

However, it would be nice not to have file lock at all, eg PotPlayer allow video file rename/move/delete while playing.
Post Reply