Bug 467392

Summary: Widget title does not change when choosing different widget through alternate 5.27.3
Product: [Plasma] plasmashell Reporter: Jefri <ahjefri>
Component: System Monitor widgetsAssignee: Plasma Bugs List <plasma-bugs-null>
Status: ASSIGNED ---    
Severity: normal CC: ahiemstra, nate, notmart, plasma-bugs-null, troytjh98
Priority: NOR Keywords: junior-jobs
Version First Reported In: 5.27.3   
Target Milestone: 1.0   
Platform: Kubuntu   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Jefri 2023-03-15 11:21:13 UTC
SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***


STEPS TO REPRODUCE
1. add Network speed widget
2. right click on it and choose alternate
3.  choose Memory monitor

OBSERVED RESULT
Title stays the same as Network speed

EXPECTED RESULT
Widget should change to Memory monitor

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma:  Kubuntu 22.10 / KDE plasama5.27.3
(available in About System)
KDE Plasma Version: 5.27.3
KDE Frameworks Version: 5.104.0
Qt Version: 5.15.6

ADDITIONAL INFORMATION
This behavior started on 5.25
Comment 1 Jefri 2023-03-15 11:23:38 UTC
Operating System: Kubuntu 22.10
KDE Plasma Version: 5.27.3
KDE Frameworks Version: 5.104.0
Qt Version: 5.15.6
Kernel Version: 5.19.0-35-generic (64-bit)
Graphics Platform: X11
Processors: 4 × Intel® Core™ i5-7200U CPU @ 2.50GHz
Memory: 7.5 GiB of RAM
Graphics Processor: Mesa Intel® HD Graphics 620
Manufacturer: Dell Inc.
Product Name: XPS 13 9360
Comment 2 Nate Graham 2024-08-18 23:03:14 UTC
Can reproduce in current git master, too.
Comment 3 troytjh98 2024-12-27 22:55:50 UTC
This appears to be caused by reapplying the old config to the new widget in AlternativesHelper::loadAlternative. This appears to have been added to keep the old settings when switching between widgets (https://invent.kde.org/plasma/plasma-workspace/-/commit/b9a3005f39a5c2f0336b7f687abe1e86d595a40d).

The system monitor widget is technically the same between the alternative versions. The only difference is the config, so reloading the old config causes nothing to change. I may need to look a bit more closely to see if there's away to resolve this without breaking the other use case.
Comment 4 Bug Janitor Service 2025-01-04 00:16:23 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/libplasma/-/merge_requests/1239
Comment 5 Bug Janitor Service 2025-01-04 00:28:43 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/5028