Bug 422737 - consistency: show port chooser in applet, even when there is only one port shown as available
Summary: consistency: show port chooser in applet, even when there is only one port sh...
Status: RESOLVED INTENTIONAL
Alias: None
Product: plasma-pa
Classification: Plasma
Component: applet (show other bugs)
Version: 5.19.0
Platform: Other Other
: NOR normal
Target Milestone: ---
Assignee: David Rosca
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-06-10 11:01 UTC by Daniel
Modified: 2020-06-10 13:32 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
video showing the bug. the kcm module is shown at the end. (268.57 KB, video/mp4)
2020-06-10 11:01 UTC, Daniel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel 2020-06-10 11:01:13 UTC
Created attachment 129193 [details]
video showing the bug. the kcm module is shown at the end.

SUMMARY
in the applet, the port chooser is only shown, when there are at least more than one ports shows as available. In the kcm module, the port chooser is shown, if there are at least more than one port (which not all must be flagged as available). This is inconsistent.

Since this available-flag is sometimes wrong (indeed is wrong for me, probably a bug in pulseaudio), I suggest to also show the port chooser in the applet if there are at least more than one port (which not all must be flagged as available) [like it is the case in the kcm module]

BTW, why are there checkboxes for the port chooser and not radio buttons; it isn't possible to use multiple ports at the same time.

STEPS TO REPRODUCE
1. have at least one audio source with two ports, one unavailable

OBSERVED RESULT
port chooser not shown in applet (except when the "unavailable" port is the current selected port), but in km module

EXPECTED RESULT
port chooser should be also shown in applet in the described situation.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 5.19.0
KDE Frameworks Version: 5.70.0
Qt Version: 5.15.0
Kernel Version: 5.4.45-1-lts
Comment 1 Nate Graham 2020-06-10 13:32:28 UTC
This was a deliberate change. The applet has much less space available than the KCM and the threshold for becoming visually cluttered is much lower.

If the ports are incorrect on your hardware, I would suggest filing a bug on PulseAudio to get that fixed rather than working around it locally.

Thanks!