qView icon indicating copy to clipboard operation
qView copied to clipboard

Restore open windows from previous session

Open shape55 opened this issue 4 years ago • 6 comments

Please add this functionality which exists for every other Mac app I have used. Normally, all open windows restore when relaunching an app if the "Close windows when quitting an app" preference is unchecked in System Preferences/General.

You responded to my request for this feature last year, but nothing came up in the results when I searched the issues, so I wanted to create a new one for it.

Thanks

shape55 avatar Nov 13 '20 23:11 shape55

Good idea to have a separate issue for this so it is not forgotten.

jurplel avatar Nov 14 '20 01:11 jurplel

As I praised in #416 👍 qView is a great picture viewer for side-by-side picture ("collage") presentations. To arrange those — sometimes on multiple Spaces (macOS brand name for "multiple desktops") — can take quite some time and effort.

Hence this feature would be very appreciated! To not loose all that arrangement effort just if you once have to restart or endure a crash of qView or your computer.

I want to stress out that the windows should restore optimally all attributes or at least as many as possible: Window size, loaded image (path or if you want perfection inode as fallback, I think macOS provides this via API), zoom factor, scroll position inside viewport.

porg avatar May 05 '21 19:05 porg

I will reevaluate this with qvgraphicsview rewrite but I imagine it'll get pushed back again. I can see the importance this feature has, though.

jurplel avatar May 05 '21 23:05 jurplel

Hi there, just wanted to check back on this as it's been 4 yrs now, and qView is still the only Mac app I've ever used that doesn't restore the windows when relaunching the app. It just makes it very time consuming to have to do this manually if you have a lot of windows open and perfectly placed/organized side-by-side.

Additionally, this is explained in the Launching section of Apple's Human Interface Guidelines:

Restore the previous state when your app restarts so people can continue where they left off. Avoid making people retrace steps to reach their previous location in your app or game. Restore granular details of the previous state as much as possible. For example, scroll the view to people’s most recent position, and display windows in the same state and location in which people left them.

I'm also including the link you provided from the referring issue: https://developer.apple.com/documentation/appkit/nswindow/1526255-restorable

Windows should be preserved between launch cycles to maintain interface continuity for the user.

Thanks

shape55 avatar Sep 19 '23 23:09 shape55

This should definitely be added at some point but I don't have time to do it myself for now.

jurplel avatar Oct 07 '23 19:10 jurplel

I implemented it as such: d68f376. I'm not sure it would be as feasible without the changes in the graphicsview-rewrite branch, but if/when that gets merged, I could open a PR for this feature if desired.

jdpurcell avatar Oct 07 '23 23:10 jdpurcell