Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sumatra opens the same file multiple times #4716

Open
julie777 opened this issue Dec 12, 2024 · 1 comment
Open

Sumatra opens the same file multiple times #4716

julie777 opened this issue Dec 12, 2024 · 1 comment

Comments

@julie777
Copy link

SumatraPDF version

  • Version [e.g. 3.5.2, pre-release]
  • 3.3.3 64 bit Windows

Describe the bug
If I close Sumatra with multiple files open, and then open a group of files containing those files then I end up with multiple tabs for the same file.
This does not happen if only one file is open when closing sumatra and it does not happen when opening an overlapping set that is not a superset.

To Reproduce
Steps to reproduce the behavior:

  1. open 2 files from File Explorer
    image
  2. close sumatra (I am using <esc>)
  3. select a group of files (superset) in file explorer
    image
  4. hit <enter>
    image
  5. the same files are open in multiple tabs

Expected behavior
A clear and concise description of what you expected to happen.
Duplicate tabs for the same file should not be opened, especially not in the semi random way that it currently works.

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.

@GitHubRulesOK
Copy link
Collaborator

GitHubRulesOK commented Dec 13, 2024

SumatraPDF does not get the files in a rational order from Explorer, You can select different ways and SumatraPDF get them "Semi-Randomly"

image
imageimage

If you pick in reverse Explorer usually works like a "stack"
image

It also depends on setting

ReloadModifiedDocuments = true
RememberOpenedFiles = true
RememberStatePerDocument = false
RestoreSession = true
ReuseInstance = true

So "reuse" will be respected by the command line (where needed for editors) however if you drag and drop via windows explorer then a different method leads to a second copy, same as if double clicked after a restore!
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants