1.91.5: Prev / Next buttons active if only 1 file in dir
Moderators: helmut, XnTriq, xnview
- spacemarine
- Posts: 14
- Joined: Sun Oct 07, 2007 8:48 pm
- Location: Germany
1.91.5: Prev / Next buttons active if only 1 file in dir
Minor cosmetic bug, steps to reproduce:
1) There is only one, single viewable file (e.g. example.jpg) in
a directory.
2) Open the file in XnView's viewer by double-clicking in the explorer
3) The arrow buttons Previous file / Next file on the toolbar are active and
clickable, though nothing happens when you click on them.
Expected behaviour:
The buttons should be inactive and "greyed out" if there are no previous /
next files in the dir.
1) There is only one, single viewable file (e.g. example.jpg) in
a directory.
2) Open the file in XnView's viewer by double-clicking in the explorer
3) The arrow buttons Previous file / Next file on the toolbar are active and
clickable, though nothing happens when you click on them.
Expected behaviour:
The buttons should be inactive and "greyed out" if there are no previous /
next files in the dir.
Right but…
—> spacemarine
Hello !
• Right, but we have the same behaviour in all old versions (I checked it even in 1.80.3).
- Both buttons might be greyed out - logically - but maybe Pierre has a good reason to leave that “as is” ?
VG
Claude
Clo

• Right, but we have the same behaviour in all old versions (I checked it even in 1.80.3).
- Both buttons might be greyed out - logically - but maybe Pierre has a good reason to leave that “as is” ?


Claude
Clo
Old user ON SELECTIVE STRIKE till further notice •
- spacemarine
- Posts: 14
- Joined: Sun Oct 07, 2007 8:48 pm
- Location: Germany
Re: Right but…
Strangely, when you then click on any dropdown menu, the
buttons then become greyed out and inactive.
Does this also happen for you ?
buttons then become greyed out and inactive.
Does this also happen for you ?
It does !
—> spacemarine
Hello !
• Yes, it does ! In all versions I tested.
- The mystery darkens…
VG
Claude
Clo

• Yes, it does ! In all versions I tested.
- The mystery darkens…

Claude
Clo
Old user ON SELECTIVE STRIKE till further notice •
Possibly also related: [Minor] “Next file” button not greyed… (Resolved Bugs & Requests)xnview ([url=http://newsgroup.xnview.com/viewtopic.php?p=40880#40880]Previous / next icons not grayed out correctly[/url]) wrote: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.
- spacemarine
- Posts: 14
- Joined: Sun Oct 07, 2007 8:48 pm
- Location: Germany
Back…
—> XnTriq
Hello Me. Librarian !
• The bug I reported in the thread you quote is back in 1.91.5, exactly like decribed there.
• Pierre, pleaaaaaase ?
KR
Claude
Clo

• The bug I reported in the thread you quote is back in 1.91.5, exactly like decribed there.
• Pierre, pleaaaaaase ?

Claude
Clo
Old user ON SELECTIVE STRIKE till further notice •
Re: Back…
The problem is: When you open a file, i don't know how many files are on the same folder! I check only when only you click on next or previousClo wrote:—> XnTriq
Hello Me. Librarian !
• The bug I reported in the thread you quote is back in 1.91.5, exactly like decribed there.
• Pierre, pleaaaaaase ?
Pierre.
- spacemarine
- Posts: 14
- Joined: Sun Oct 07, 2007 8:48 pm
- Location: Germany
You have a folder with only 1 file, and you open it. The prev/next button are active, you click on any toolbar menu, and they become greyed??? I can't reproduce...spacemarine wrote:But then why do the prev / next arrows become greyed out (=inactive)
when you simply click on any dropdown menu in the main menu toolbar ?
That seems mysterious to me .... does some kind of file check (whether there
is more than one file in the directory) take place when you click on a menu ?
Pierre.
Click anywhere
—> Pierre
Hello !
• Like I confirmed already above, this occurs here too with XP-Pro SP1, and the two buttons turn greyed
even simply clicking anywhere on the background of the window in “View” !
- Indeed also opening any menu, like spacemarine said…
KR
Claude
Clo

• Like I confirmed already above, this occurs here too with XP-Pro SP1, and the two buttons turn greyed
even simply clicking anywhere on the background of the window in “View” !
- Indeed also opening any menu, like spacemarine said…

Claude
Clo
Old user ON SELECTIVE STRIKE till further notice •
- spacemarine
- Posts: 14
- Joined: Sun Oct 07, 2007 8:48 pm
- Location: Germany
Yes, just as Clo also confirmed.
If clicking on any menu (or on the background, as Clo said)
with only one viewable file in a directory both arrow buttons
become greyed.
With two or more images in the folder, depending on which of the images you are viewing
(which one you click on in the explorer to start XnView),
the "previous" OR the "next" button OR neither of the two
becomes greyed (which is the correct behaviour in each case).
Some checking must take place then
So just do this check at the program start, and the problem is solved

Maybe it has to do with our view settings ? I only allow XnView to show
images (nothing else), and I have set it to only use one view window
(i.e. reuse the same window), and multiple program instances are also
not allowed. "Read one image ahead" AND "keep current image" in cache are both selected.
Of course some other setting could be the culprit which causes this
behaviour, but right now I can't imagine which one
Cheers,
Spacemarine
If clicking on any menu (or on the background, as Clo said)
with only one viewable file in a directory both arrow buttons
become greyed.
With two or more images in the folder, depending on which of the images you are viewing
(which one you click on in the explorer to start XnView),
the "previous" OR the "next" button OR neither of the two
becomes greyed (which is the correct behaviour in each case).
Some checking must take place then

So just do this check at the program start, and the problem is solved


Maybe it has to do with our view settings ? I only allow XnView to show
images (nothing else), and I have set it to only use one view window
(i.e. reuse the same window), and multiple program instances are also
not allowed. "Read one image ahead" AND "keep current image" in cache are both selected.
Of course some other setting could be the culprit which causes this
behaviour, but right now I can't imagine which one

Cheers,
Spacemarine