sumatrapdf icon indicating copy to clipboard operation
sumatrapdf copied to clipboard

Session restore doesn't focus the last active tab (keeps focus on the first tab)

Open PiotrKurzawa opened this issue 4 months ago • 1 comments

SumatraPDF 3.5.2.0 Hello, Even with all session restore settings enabled, Sumatra PDF does not restore focus to the last active tab upon relaunch. It correctly reopens all tabs and their last-viewed pages, but the focus always defaults to the first tab in the list.

My Environment:

  • SumatraPDF Version: [tutaj wpisz swoją wersję, np. 3.5.2]
  • Operating System: Windows 11

Troubleshooting Steps I Have Already Taken: - Confirmed "Remember opened files" is enabled in Options. - Confirmed RestoreSession = true is in the settings file. - Disabled the Start Page by setting ShowStartPage = false. - Tested by generating a fresh, default settings file (renaming the old one). - Performed a complete, clean reinstallation of the application (uninstall, delete %APPDATA%\SumatraPDF, reinstall). - The issue persists even on a fresh, default installation.

PiotrKurzawa avatar Aug 17 '25 12:08 PiotrKurzawa

No way to alter prior versions thus issues need to be based on current pre-release 3.6.##### There can seem to be odd behaviour due to different factors however testing with 3 files where left was opened last but rightmost is in view when closing and restart with middle it is the left that will appear rather than middle used for launch or right which was last viewed.

Image Image

Unsure if that is down to the TabIndex = ## (perhaps not working) as changing that was what I thought previously controlled last view

Here in 3.5.2 when TabIndex = 2 (= last in view) it is the middle file is active on reload.

Image

GitHubRulesOK avatar Aug 17 '25 13:08 GitHubRulesOK