Viewer automatically scrolls away if opening excluded formats

Older bugs which are supposed to be fixed in 0.84. *** Please try to reproduce your bug and confirm the bug fix. ***

Moderators: XnTriq, helmut, xnview, Dreamer

Zanzibart6000
Posts: 2
Joined: Sat Jan 11, 2025 9:47 pm

Viewer automatically scrolls away if opening excluded formats

Post by Zanzibart6000 »

Windows 10, XnView MP 1.8.3

By excluded I mean file formats that are skipped when scrolling through images in the viewer so I'd have to open them manually. I'm not talking about file association (formats that are set to be opened with XnView MP by default). I'm talking about files that would be affected by a filter in Settings > File list > Customs Filter > Exclude.

When I open one of those excluded files it automatically skips to the last file of "included" format after about five seconds and so. If there is no "included" files in the folder, it stays open but a bunch of icons get greyed out on the toolbar so I guess it still tries to scroll back.

Setting XnView MP as default software for that filetype has no effect on this behavior.
Same files are viewed normally when removing their format from from excluded or adding it to included filter.
Zanzibart6000
Posts: 2
Joined: Sat Jan 11, 2025 9:47 pm

Re: Viewer automatically scrolls away if opening excluded formats

Post by Zanzibart6000 »

Tested with other versions.

This issue is present in 1.8.2, 1.8.1
It isn't present in 1.6.5, 1.7.2 and 1.8.0, and it behaves as if manually opened excluded file is the only one in the folder so scrolling back/forth does nothing.
User avatar
xnview
Author of XnView
Posts: 45219
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Viewer automatically scrolls away if opening excluded formats

Post by xnview »

which settings do you use, and how to reproduce
Pierre.
User avatar
user0
XnThusiast
Posts: 2113
Joined: Sat May 09, 2015 9:37 am

Re: Viewer automatically scrolls away if opening excluded formats

Post by user0 »

to reproduce
0. have test files in folder
viewer_filelist_open_excluded_format.zip
1. goto Settings > File list > Custom filter
- add BMP format to Excluded
- press OK, close app
2. open 3.BMP in Viewer from win file explorer
image will be opened, but after a few seconds it will be closed and focus will shift to the last file

expected behavior
keep excluded image open, but probably exclude it from filelist when user switches to another image
You do not have the required permissions to view the files attached to this post.
User avatar
xnview
Author of XnView
Posts: 45219
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Viewer automatically scrolls away if opening excluded formats

Post by xnview »

:bugconfirmed: Thanks to your detailed description I can reproduce the problem.
Pierre.
User avatar
xnview
Author of XnView
Posts: 45219
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Viewer automatically scrolls away if opening excluded formats

Post by xnview »

This problem is supposed to be fixed in XnView MP 1.8.4. Please check and confirm the bug fix here.
Pierre.
User avatar
user0
XnThusiast
Posts: 2113
Joined: Sat May 09, 2015 9:37 am

Re: Viewer automatically scrolls away if opening excluded formats

Post by user0 »

184
excluded image stay open - OK

however, there is issue with sorting in Viewer filelist
image will be added to the end of filelist (5/5 using test images)
if you wait 5 seconds and press Ctrl+R to reload image - it will be placed in correct index position 3/5

same issue when open (via double-click in file explorer) associated images in Viewer that do not have XnViewMP.xxx keys in registry

related
1.5.0 - browser - raw opens in new instance (A)
User avatar
xnview
Author of XnView
Posts: 45219
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Viewer automatically scrolls away if opening excluded formats

Post by xnview »

user0 wrote: Tue Feb 04, 2025 8:28 am however, there is issue with sorting in Viewer filelist
image will be added to the end of filelist (5/5 using test images)
if you wait 5 seconds and press Ctrl+R to reload image - it will be placed in correct index position 3/5

same issue when open (via double-click in file explorer) associated images in Viewer that do not have XnViewMP.xxx keys in registry
yes sort is made when filelist is updated
Pierre.
User avatar
user0
XnThusiast
Posts: 2113
Joined: Sat May 09, 2015 9:37 am

Re: Viewer automatically scrolls away if opening excluded formats

Post by user0 »

xnview wrote: Fri Feb 07, 2025 8:19 am
user0 wrote: Tue Feb 04, 2025 8:28 am however, there is issue with sorting in Viewer filelist
image will be added to the end of filelist (5/5 using test images)
if you wait 5 seconds and press Ctrl+R to reload image - it will be placed in correct index position 3/5

same issue when open (via double-click in file explorer) associated images in Viewer that do not have XnViewMP.xxx keys in registry
yes sort is made when filelist is updated
ok, but need to update index position (in statusbar, overlay info, maybe somewhere else) once sort is finished