Skip to content

"Show most Recent" makes unable to close all files and keep them closed. #5460

@kalil-camera

Description

@kalil-camera

SumatraPDF version
3.6 64bits

Describe the bug
When the option to keep recent open files is on, if you click to close all opened documents, one by one, close tab by tab, the last close will close SumatraPDF.
When you open a new PDF file, it will restore all the tabs that were previously closed manually. this tab list never gets any smaller, sometimes it has 30+ old docs i dont want to see anymore.
even worse, i split two instances of Sumatra, each with its own tabs, I close tab by tab and close both windows without any files open. when i double-click a PDF file somewhere, it will open two instances of Sumatra with all the tabs, everytime.

To Reproduce
Steps to reproduce the behavior:

  1. Enable keep recent files open
  2. Open a lot of different files
  3. close tab by tab untill Sumatra is closed
  4. open a random PDF file after that

Expected behavior
It should only open the file that was least opened, since the others tabs were manually closed

File that reproduces the problem
If this is related to a specific PDF etc. file, please attach the file.

Screenshots
If applicable, add screenshots to help explain your problem.

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions