Bug 512852

Summary: Audio Volume widget always opens to Devices tab after plasmashell crashes/restarts
Product: [Plasma] plasmashell Reporter: mith3113
Component: Audio Volume widgetAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: isma.af, kdedev, nate
Priority: NOR    
Version First Reported In: 6.5.3   
Target Milestone: 1.0   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In: 6.6
Sentry Crash Report:

Description mith3113 2025-12-02 00:31:39 UTC
SUMMARY
If plasmashell has crashed or been restarted, the audio volume widget will always open to the devices tab, even if the last opened tab was applications. To my knowledge, the widget would always remember the last opened tab prior to 6.5.3.

STEPS TO REPRODUCE
1. Open volume widget
2. Select applications tab
3. Close volume widget
4. Restart plasmashell

OBSERVED RESULT
Volume widget always opens to devices tab

EXPECTED RESULT
Volume widget should open to the last used tab

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 6.5.3
KDE Frameworks Version: 6.20.0
Qt Version: 6.10.1
Comment 1 TraceyC 2025-12-02 21:56:48 UTC
i can confirm this behavior on Plasma built from git-master
Comment 2 Bug Janitor Service 2025-12-11 09:24:38 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-pa/-/merge_requests/392
Comment 3 cwo 2025-12-18 18:50:03 UTC
Git commit 120f4c5d842370b322b1df0386e36c6e25ba33d3 by Christoph Wolk.
Committed on 18/12/2025 at 18:46.
Pushed by cwo into branch 'master'.

applet: fix setting starting tab

The volume widget is supposed to reopen on the last active tab, but
this does not work anymore. The problem seems to be that during startup
as the components and bindings are initialized, the currentIndex is
briefly 0, which causes the wrong value to be written back to the config
and then reevaluated by the binding (so all information it could use to
fix itself is gone).

Instead, we write to the config using callLater() - this way the update
happens when everything is settled down, and the correct value is saved
in the config.
FIXED-IN: 6.6

M  +10   -8    applet/main.qml

https://invent.kde.org/plasma/plasma-pa/-/commit/120f4c5d842370b322b1df0386e36c6e25ba33d3