How window state restoring logic works? #2324
Replies: 2 comments 1 reply
-
Background information:
When only one window is opened, only one window is restored. When multiple windows are opened, there are 2 scenarios: When multiple windows are restored? File/Exit (Ctrl-Q), app crash or forcibly killing the app. When only one window is restored? All other cases. Why only one? Because if you do Alt-F4 or Ctrl-W or use window close button to close a window, then you're just closing the window, not existing the app. The state is saved when you quit the app i.e. close last window. At that time the state of the app is just one window so that is the state restored. End Task, Close all windows (and probably log out) do the equivalent of closing a window one by one, so that's why only one windows is restored. |
Beta Was this translation helpful? Give feedback.
-
Worth adding that |
Beta Was this translation helpful? Give feedback.
-
I'm not clear on the various ways Sumatra can be shut down and the impact on how many of the windows open when the app is shut down are reopened when the app is started again.
Seems you can use :
File-Exit (Cntl-Q)
In Windows Taskbar, right-click then select Close all windows
From Task Manager select End Task
App crash or log out Windows (same thing, or not?)
Any that I missed? How many of these are equivalent from the point of view of the app?
I would prefer to see all windows open at the time Sumatra was previously closed to be opened when Sumatra is opened again, regardless of the means of closing.
Beta Was this translation helpful? Give feedback.
All reactions