Skip to content

Auto-select first added page when no page is selected - #856

Merged
cyanfish merged 1 commit into
cyanfish:masterfrom
nikoskalogridis:feature/auto-select-new-scan-if-none-selected
Jul 22, 2026
Merged

Auto-select first added page when no page is selected#856
cyanfish merged 1 commit into
cyanfish:masterfrom
nikoskalogridis:feature/auto-select-new-scan-if-none-selected

Conversation

@nikoskalogridis

@nikoskalogridis nikoskalogridis commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

Summary

When a new page is added and there is no current selection, automatically select the newly added page.

Behavior

  • If selection is empty, the newly added page is selected.
  • If a page is already selected, selection is unchanged.

Why

This avoids a confusing first-use flow where image actions remain disabled after scanning because no page is selected.

Tests

  • Added unit tests in NAPS2.Lib.Tests/Images/DesktopImagesControllerTests.cs.
  • Verified both: auto-select when empty, and preserve selection when non-empty.

Fixes #855

@cyanfish
cyanfish merged commit a52632e into cyanfish:master Jul 22, 2026
2 of 3 checks passed
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

Successfully merging this pull request may close these issues.

Auto-select first newly added page when no page is selected

2 participants