1.91.5: Prev / Next buttons active if only 1 file in dir

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

Moderators: helmut, XnTriq, xnview

Post Reply
User avatar
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

Post by spacemarine »

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.
User avatar
Clo
XnThusiast
Posts: 4441
Joined: Sun Oct 17, 2004 4:57 am
Location: Bordeaux, France
Contact:

Right but…

Post by Clo »

—> 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” ? Image

:mrgreen: VG
Claude
Clo
Old user ON SELECTIVE STRIKE till further notice
User avatar
spacemarine
Posts: 14
Joined: Sun Oct 07, 2007 8:48 pm
Location: Germany

Re: Right but…

Post by spacemarine »

Strangely, when you then click on any dropdown menu, the
buttons then become greyed out and inactive.

Does this also happen for you ?
User avatar
Clo
XnThusiast
Posts: 4441
Joined: Sun Oct 17, 2004 4:57 am
Location: Bordeaux, France
Contact:

It does !

Post by Clo »

—> spacemarine

:) Hello !

• Yes, it does ! In all versions I tested.

- The mystery darkens…

:mrgreen: VG
Claude
Clo
Old user ON SELECTIVE STRIKE till further notice
User avatar
XnTriq
Moderator & Librarian
Posts: 6512
Joined: Sun Sep 25, 2005 3:00 am
Location: Ref Desk

Post by XnTriq »

xnview ([url=http://newsgroup.xnview.com/viewtopic.php?p=40880#40880]Previous / next icons not grayed out correctly[/url]) wrote:
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!
Possibly also related: [Minor] “Next file” button not greyed… (Resolved Bugs & Requests)
User avatar
spacemarine
Posts: 14
Joined: Sun Oct 07, 2007 8:48 pm
Location: Germany

Post by spacemarine »

So maybe this can be changed in a future version ;) ?

No hurry needed, but I think before adding new features, small
glitches such as this one should be corrected first :bugconfirmed: :mrgreen:

Cheers,
Spacemarine
User avatar
Clo
XnThusiast
Posts: 4441
Joined: Sun Oct 17, 2004 4:57 am
Location: Bordeaux, France
Contact:

Back…

Post by Clo »

—> 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 ?

:mrgreen: KR
Claude
Clo
Old user ON SELECTIVE STRIKE till further notice
User avatar
xnview
Author of XnView
Posts: 46236
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Back…

Post by xnview »

Clo 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 ?
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 previous
Pierre.
User avatar
spacemarine
Posts: 14
Joined: Sun Oct 07, 2007 8:48 pm
Location: Germany

Post by spacemarine »

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

Post by xnview »

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 ?
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...
Pierre.
User avatar
Clo
XnThusiast
Posts: 4441
Joined: Sun Oct 17, 2004 4:57 am
Location: Bordeaux, France
Contact:

Click anywhere

Post by Clo »

—> 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…

:mrgreen: KR
Claude
Clo
Old user ON SELECTIVE STRIKE till further notice
User avatar
spacemarine
Posts: 14
Joined: Sun Oct 07, 2007 8:48 pm
Location: Germany

Post by spacemarine »

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 :wink: :wink:

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 :mrgreen:

Cheers,
Spacemarine
Post Reply