Bug 512852 - Audio Volume widget always opens to Devices tab after plasmashell crashes/restarts
Summary: Audio Volume widget always opens to Devices tab after plasmashell crashes/res...
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Audio Volume widget (other bugs)
Version First Reported In: 6.5.3
Platform: Arch Linux Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-12-02 00:31 UTC by mith3113
Modified: 2025-12-18 18:50 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In: 6.6
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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