Bug 436592 - Only show device list when more than one device is detected
Summary: Only show device list when more than one device is detected
Status: VERIFIED FIXED
Alias: None
Product: Skanpage
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Alexander Stippich
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-05-04 16:47 UTC by Nate Graham
Modified: 2021-05-15 13:41 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nate Graham 2021-05-04 16:47:30 UTC
When one device is detected, you still have to click "Open selected device". This is redundant; if only one device is detected, there's a 99.9% chance that I want to use that device. :)
Comment 1 Alexander Stippich 2021-05-04 19:33:20 UTC
Since when does Skanpage have a bugzilla entry? :)

Sounds perfectly valid, and should not be too hard to implement it.
Comment 2 Nate Graham 2021-05-04 19:37:46 UTC
I just made one; hope you don't mind. :)
Comment 3 Alexander Stippich 2021-05-04 20:35:26 UTC
Of course not!
Comment 4 Alexander Stippich 2021-05-14 19:56:32 UTC
Thinking about it, would you also expect skanpage to select the only available device when actively reselecting the scanner?
Comment 5 Nate Graham 2021-05-14 20:16:14 UTC
When there is only once device available, yes.
Comment 6 Alexander Stippich 2021-05-15 09:44:19 UTC
Git commit d24ed8bc98e38410ed00c03ce2e7e2ad132c3b18 by Alexander Stippich.
Committed on 15/05/2021 at 09:43.
Pushed by astippich into branch 'master'.

automatically select scanner device if only one device is available

M  +8    -1    src/Skanpage.cpp

https://invent.kde.org/utilities/skanpage/commit/d24ed8bc98e38410ed00c03ce2e7e2ad132c3b18
Comment 7 Nate Graham 2021-05-15 13:41:30 UTC
Hooray! Works great.