Page 1 of 1

0.84: Browser changes Folder after closing active image tab

Posted: Mon Jan 09, 2017 5:55 am
by young
Whenever an active image tab is closed, the Browser will change to the folder of the closed image.

This is bad when you are browsing a category:
  1. Switch to Categories Filter.
  2. Select a category to browse.
  3. Open an image.
  4. Close the image tab.
The browser now shows the folder that contains the closed image, instead of the category that was already in the Browser.

You cannot go back to the category by using the Back button, because only folders are stored in history. You lose your location and have to find the image again.

This problem only happens for active image tabs. It does not happen if an inactive image tab is closed. If you switch back to the Browser tab, and then close the image tab, the Browser stays on the category and does not change to the folder. This is the correct behavior.

Re: 0.84: Browser changes Folder after closing active image

Posted: Mon Jan 09, 2017 8:31 am
by helmut
Thank you for your problem report, young. Which beta version did you use? Does this work in XnView 0.83?

Re: 0.84: Browser changes Folder after closing active image

Posted: Mon Jan 09, 2017 11:59 am
by xnview
it was like that in XnView Classic, perhaps i need to add a setting to disable it?

Re: 0.84: Browser changes Folder after closing active image

Posted: Tue Jan 10, 2017 5:19 am
by young
An option would be a good idea. However, I think it should be off by default, because it is a side effect that doesn't match other applications.

The Browser is sort of like Windows Explorer. If you open two images from different folders in Windows Explorer, closing one of them will not change the folder in Explorer.

Or look at a thumbnail gallery on a web page. If you open new browser tabs for multiple images that you want to examine more closely, closing one of the tabs will not scroll the thumbnail gallery to the closed image.

I understand why the behavior was originally added. However, it makes XnView inconsistent with other applications, so it is best for the default to be consistent.

Re: 0.84: Browser changes Folder after closing active image

Posted: Tue Jan 10, 2017 8:08 am
by helmut
young wrote:An option would be a good idea. However, I think it should be off by default, because it is a side effect that doesn't match other applications. ...
+1 I fully agree.

Re: 0.84: Browser changes Folder after closing active image

Posted: Wed Jan 11, 2017 12:59 pm
by xnview
sorry but you have it already :)
Settings>Interface>Synchronize browser

Re: 0.84: Browser changes Folder after closing active image

Posted: Wed Jan 11, 2017 5:07 pm
by young
xnview wrote:sorry but you have it already :)
Settings>Interface>Synchronize browser
Thanks, that works. I don't know how I missed that. I think I just skipped over it because I was looking for it under Tabs.

How about:
  • Turning it off by default to be consistent with other Windows applications.
  • Moving all three view options from Interface to Tabs.

Re: 0.84: Browser changes Folder after closing active image

Posted: Sun Jan 15, 2017 10:30 am
by HanVroon
Funny how browsing through bugs can point you to already implemented wishes... :)
I always found it pity in XnViewMP that when I was Browsing all my photos by rightclick on the main folder and choosing "Show all files (recursive)", then open a photo and closing it again, the Browser view changed to that subfolder, instead of still showing all recursive files, like in Classic.
Now that I know about this overlooked setting "Synchronize browser when view is closed", I can toggle it off when I want to work with show all recursive.
I was planning to ask Pierre some time if this show the folder content of the last closed tab could be disabled when recursive mode is on, but now that seems obsolete.

The fact that XnViewMP Browser switches to the folder of the last closed tab is something I like and use a lot.
So the configuration choise of "Synchronize browser when view is closed" should be kept, I don't mind if it is moved, as long as I can find it.
After all, XnViewMP is much more than a Windows Explorer set to thumb view with a Windows Photo Viewer to show the files...