Previous / next icons not grayed out correctly
Moderators: helmut, XnTriq, xnview
Previous / next icons not grayed out correctly
Hi,
when double clicking on the first or last image in a directory to launch XnView, the "Previous file" / "Next file" toolbar buttons are not correctly grayed out. When starting with the first image, the "Previous file" button should be grayed out, when starting with the last image, the "Next file" button should be grayed out. It works fine when starting XnView with the second (or second last) image in the directory, and then navigating one image back (or forth). In that case the toolbar buttons are correctly grayed out.
V 1.90 <x>
when double clicking on the first or last image in a directory to launch XnView, the "Previous file" / "Next file" toolbar buttons are not correctly grayed out. When starting with the first image, the "Previous file" button should be grayed out, when starting with the last image, the "Next file" button should be grayed out. It works fine when starting XnView with the second (or second last) image in the directory, and then navigating one image back (or forth). In that case the toolbar buttons are correctly grayed out.
V 1.90 <x>
Re: B4: Previous / next icons not grayed out correctly
Do you have the problem with 1.82.4?eyebex wrote:Hi,
when double clicking on the first or last image in a directory to launch XnView, the "Previous file" / "Next file" toolbar buttons are not correctly grayed out. When starting with the first image, the "Previous file" button should be grayed out, when starting with the last image, the "Next file" button should be grayed out. It works fine when starting XnView with the second (or second last) image in the directory, and then navigating one image back (or forth). In that case the toolbar buttons are correctly grayed out.
Pierre.
From what I remember I have reported this problem a long time ago. And Pierre's answer (roughly) was: When opening one image XnView cannot know how many more displayable images are in the current directory. So the buttons Previous / Next cannot be greyed out.
I'm not sure whether this still applies or not.
I'm not sure whether this still applies or not.
Exactlyhelmut wrote:From what I remember I have reported this problem a long time ago. And Pierre's answer (roughly) was: When opening one image XnView cannot know how many more displayable images are in the current directory. So the buttons Previous / Next cannot be greyed out.
I'm not sure whether this still applies or not.

Pierre.
Eh, but when you open the first image, go one image forward and one image backward, the "Previous file" button is correctly grayed out. So why does this work then? Does XnView known how many images there are by one looking at the first two? 
Honestly, this should not be impossible to fix. Other image viewers can to so, too.

Honestly, this should not be impossible to fix. Other image viewers can to so, too.
It's for speed, i load list of files only if you click on next/previous!eyebex wrote:Eh, but when you open the first image, go one image forward and one image backward, the "Previous file" button is correctly grayed out. So why does this work then? Does XnView known how many images there are by one looking at the first two?
Honestly, this should not be impossible to fix. Other image viewers can to so, too.
Pierre.
Yes can be made like that, but for a future version, please...eyebex wrote:Loading the list of files could be done in a background thread, right? This way, even when viewing only one file, you would not loose any speed because loading the list starts and finishes probably while the user is still just viewing the image and not doing anything else.
Pierre.