Bug 486089

Summary: Microphone UI shows opposite option when clicked
Product: [Plasma] plasmashell Reporter: Andrew Baker <andrew.baker>
Component: Audio Volume widgetAssignee: Plasma Bugs List <plasma-bugs>
Status: CONFIRMED ---    
Severity: normal CC: isma.af, severin.hamader, sitter
Priority: NOR    
Version: 6.2.4   
Target Milestone: 1.0   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Behaviour shown when muting mic
Behaviour shown when unmuting mic

Description Andrew Baker 2024-04-24 19:57:23 UTC
SUMMARY
Clicking the microphone icon in the panel when using microphone, mutes the mic as expected but then shows the microphone volume level. When the microphone is unmuted it shows Microphone Muted on screen

STEPS TO REPRODUCE
1. Open application that uses microphone
2. Click microphone icon to mute
3. Click microphone icon to unmute

OBSERVED RESULT
Mic volume level shown when muting microphone from panel
Microphone muted shown when unmuting microphone from panel

EXPECTED RESULT
Mic volume level shown when unmuting microphone from panel
Microphone muted shown when muting microphone from panel

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Fedora Linux 40
(available in About System)
KDE Plasma Version: 6.0.3
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.2

ADDITIONAL INFORMATION
Comment 1 Andrew Baker 2024-04-24 19:57:51 UTC
Created attachment 168881 [details]
Behaviour shown when muting mic
Comment 2 Andrew Baker 2024-04-24 19:58:05 UTC
Created attachment 168882 [details]
Behaviour shown when unmuting mic
Comment 3 Harald Sitter 2024-09-23 14:32:22 UTC
Looks deceptively trivial but isn't. The problem here appears to be that the indicator assumes synchronous volume changes, but in fact it's async so by the time it looks at the volume it's still the old volume, not the new one. Not sure we'll get that sorted without some serious restructuring of things.