Bug 501586

Summary: Installing a wallpaper plugin caused the wallpaper type to become unset
Product: [Plasma] plasmashell Reporter: Roke Julian Lockhart Beedell <4wy78uwh>
Component: ContainmentAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED FIXED    
Severity: minor CC: kde, nate, newton, notmart
Priority: NOR    
Version First Reported In: 6.3.3   
Target Milestone: 1.0   
Platform: Fedora RPMs   
OS: Linux   
URL: https://discuss.kde.org/t/guidance-on-whether-to-file-related-but-slightly-different-bugs-separately/31594?u=rokejulianlockhart
Latest Commit: Version Fixed/Implemented In: 6.4.1
Sentry Crash Report:
Attachments: A Screenshot of the Window

Description Roke Julian Lockhart Beedell 2025-03-16 15:52:21 UTC
Created attachment 179463 [details]
A Screenshot of the Window

SUMMARY

Installing a wallpaper plugin caused the wallpaper type to become unset.

STEPS TO REPRODUCE

I installed https://store.kde.org/p/2139746.

OBSERVED RESULT

The combination box became unset, despite there being a set type.

EXPECTED RESULT

It should have remained as it was beforehand.

SOFTWARE/OS VERSIONS

> Operating System: Fedora Linux 41  
> KDE Plasma Version: 6.3.3  
> KDE Frameworks Version: 6.12.0  
> Qt Version: 6.8.2  
> Kernel Version: 6.13.6-200.fc41.x86_64 (64-bit)  
> Graphics Platform: Wayland  

ADDITIONAL INFORMATION

This was originally discussed at https://discuss.kde.org/t/guidance-on-whether-to-file-related-but-slightly-different-bugs-separately/31594?u=rokejulianlockhart.
Comment 1 Nate Graham 2025-03-17 17:16:13 UTC
Can confirm. Happens when uninstalling a wallpaper plugin, too.
Comment 2 Nate Graham 2025-04-30 18:02:01 UTC
*** Bug 503541 has been marked as a duplicate of this bug. ***
Comment 3 Bug Janitor Service 2025-05-09 21:04:19 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/5458
Comment 4 Bug Janitor Service 2025-05-09 21:14:19 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-desktop/-/merge_requests/2984
Comment 5 Nate Graham 2025-05-13 13:56:35 UTC
Git commit 68dc4d58e6a2a103298edede668ae1d27e7452ed by Nate Graham.
Committed on 13/05/2025 at 13:05.
Pushed by ngraham into branch 'master'.

kcms/wallpaper: reload plugin combobox after model change

Installing, uninstalling, or upgrading a wallpaper plugin causes a
model reset. However the plugin combobox's value is set imperatively,
and not updated after a model reset, so it becomes blank.

To alleviate this, connect to a signal after that happens and refresh
the combobox's contents and current index.

M  +6    -0    kcms/wallpaper/ui/main.qml
M  +3    -0    kcms/wallpaper/wallpapermodule.cpp

https://invent.kde.org/plasma/plasma-workspace/-/commit/68dc4d58e6a2a103298edede668ae1d27e7452ed
Comment 6 Bug Janitor Service 2025-06-16 17:09:18 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-desktop/-/merge_requests/3073
Comment 7 Nate Graham 2025-06-16 17:13:00 UTC
Git commit a4327cab411a23504cd00caa838189604e49c4a8 by Nate Graham.
Committed on 16/06/2025 at 17:05.
Pushed by ngraham into branch 'master'.

Desktop: reload plugin combobox after model change

Requires:
- https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/5458
- https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/5596

Installing, uninstalling, or upgrading a wallpaper plugin causes a
model reset. However the plugin combobox's value is set imperatively,
and not updated after a model reset, so it becomes blank.

To alleviate this, connect to a new signal added to the model after a
reset happens, and refresh the combobox's contents and current index.
FIXED-IN: 6.4.1

M  +15   -3    desktoppackage/contents/configuration/ConfigurationContainmentAppearance.qml

https://invent.kde.org/plasma/plasma-desktop/-/commit/a4327cab411a23504cd00caa838189604e49c4a8
Comment 8 Nate Graham 2025-06-16 17:32:33 UTC
Git commit 701fe110d2484c4b3a78647d8555b7ac437c01b6 by Nate Graham.
Committed on 16/06/2025 at 17:08.
Pushed by ngraham into branch 'Plasma/6.4'.

Desktop: reload plugin combobox after model change

Requires:
- https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/5458
- https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/5596

Installing, uninstalling, or upgrading a wallpaper plugin causes a
model reset. However the plugin combobox's value is set imperatively,
and not updated after a model reset, so it becomes blank.

To alleviate this, connect to a new signal added to the model after a
reset happens, and refresh the combobox's contents and current index.
FIXED-IN: 6.4.1


(cherry picked from commit a4327cab411a23504cd00caa838189604e49c4a8)

3c00c1a0 Desktop: reload plugin combobox after model change

Co-authored-by: Nate Graham <nate@kde.org>

M  +15   -3    desktoppackage/contents/configuration/ConfigurationContainmentAppearance.qml

https://invent.kde.org/plasma/plasma-desktop/-/commit/701fe110d2484c4b3a78647d8555b7ac437c01b6