Previous / next icons not grayed out correctly

Bugs found in XnView Classic. Please report only one bug per topic!

Moderators: XnTriq, xnview

eyebex
Posts: 32
Joined: Thu Jul 29, 2004 8:11 pm

Previous / next icons not grayed out correctly

Post by eyebex »

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>
User avatar
xnview
Author of XnView
Posts: 37624
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: B4: Previous / next icons not grayed out correctly

Post by xnview »

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.
Do you have the problem with 1.82.4?
Pierre.
eyebex
Posts: 32
Joined: Thu Jul 29, 2004 8:11 pm

Post by eyebex »

Yes, the same problem already exists in 1.82.4, I just checked.
User avatar
helmut
Moderator
Posts: 8453
Joined: Sun Oct 12, 2003 6:47 pm
Location: Frankfurt, Germany

Post by helmut »

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.
User avatar
xnview
Author of XnView
Posts: 37624
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Post by xnview »

helmut 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.
Exactly :-)
Pierre.
eyebex
Posts: 32
Joined: Thu Jul 29, 2004 8:11 pm

Post by eyebex »

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.
User avatar
xnview
Author of XnView
Posts: 37624
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Post by xnview »

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.
It's for speed, i load list of files only if you click on next/previous!
Pierre.
eyebex
Posts: 32
Joined: Thu Jul 29, 2004 8:11 pm

Post by eyebex »

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.
User avatar
xnview
Author of XnView
Posts: 37624
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Post by xnview »

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.
Yes can be made like that, but for a future version, please...
Pierre.
User avatar
helmut
Moderator
Posts: 8453
Joined: Sun Oct 12, 2003 6:47 pm
Location: Frankfurt, Germany

Post by helmut »

xnview wrote:Yes can be made like that, but for a future version, please...
Future version means not 1.90. -> Postponed.