Bug 511729 - Clicking delete button on a deletable widget fails to enter its "pending deletion" state until Widget Explorer is closed and re-opened
Summary: Clicking delete button on a deletable widget fails to enter its "pending dele...
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Widget Explorer sidebar (other bugs)
Version First Reported In: 6.5.80
Platform: KDE Linux Linux
: HI normal
Target Milestone: 1.0
Assignee: Akseli Lahtinen
URL:
Keywords: regression
Depends on:
Blocks:
 
Reported: 2025-11-06 19:12 UTC by Nate Graham
Modified: 2025-12-18 05:06 UTC (History)
1 user (show)

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


Attachments
Sample 3rd-party widget (34.03 KB, application/gzip)
2025-11-06 19:12 UTC, Nate Graham
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nate Graham 2025-11-06 19:12:00 UTC
Created attachment 186556 [details]
Sample 3rd-party widget

STEPS TO REPRODUCE
1. Install a 3rd-party widget (the one I noticed this with is attached)
2. Open the widget explorer
3. Navigate to the 3rd-party widget > click the delete button

OBSERVED RESULT
Nothing visibly happens.

EXPECTED RESULT
The widget visibly enters a transparent "Pending deletion" state and a button appears in the footer area offering to delete the widgets

ADDITIONAL INFORMATION
If I close and re-open the Widget Explorer again, the widget is in its proper "pending deletion" state and the delete button is visible.

In addition, the delete button says it will be deleting n widgets, where n is equal to the number of times you clicked on the delete button of the widget itself in step 3 (maybe you clicked it multiple times out of frustration)

SOFTWARE/OS VERSIONS
Operating System: KDE Linux 2025-11-04
KDE Plasma Version: 6.5.80
KDE Frameworks Version: 6.20.0
Qt Version: 6.10.0
Kernel Version: 6.17.6-arch1-1 (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 7840U w/ Radeon™ 780M Graphics
Memory: 17 GB of RAM (16.0 GB usable)
Graphics Processor: AMD Radeon 780M Graphics
Comment 1 Bug Janitor Service 2025-12-16 11:46:31 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-desktop/-/merge_requests/3402
Comment 2 Akseli Lahtinen 2025-12-16 19:09:52 UTC
Git commit 3088e75c0fe91b7880515a137959a7723da74e78 by Akseli Lahtinen.
Committed on 16/12/2025 at 15:00.
Pushed by akselmo into branch 'master'.

views/Desktop: Set applets property explicitly to list of strings

This ensures that the applets property sends a notify of its change
properly whenever it's changed.

With "var" type, it will not trigger updates to any bindings
using it. With "list<string>" type the update is sent properly.
See: https://doc.qt.io/qt-6/qml-var.html#change-notification-semantics

Also use "let" instead of "var" in AppletDelegate onClicked, to ensure
the variables are in correct scope and properly reset.

M  +2    -2    desktoppackage/contents/explorer/AppletDelegate.qml
M  +1    -1    desktoppackage/contents/views/Desktop.qml

https://invent.kde.org/plasma/plasma-desktop/-/commit/3088e75c0fe91b7880515a137959a7723da74e78
Comment 3 Akseli Lahtinen 2025-12-16 22:37:37 UTC
Git commit 84e0f5cac4d4d262815d845f32e806ecb0ca3b30 by Akseli Lahtinen.
Committed on 16/12/2025 at 19:35.
Pushed by akselmo into branch 'Plasma/6.5'.

views/Desktop: Set applets property explicitly to list of strings

This ensures that the applets property sends a notify of its change
properly whenever it's changed.

With "var" type, it will not trigger updates to any bindings
using it. With "list<string>" type the update is sent properly.
See: https://doc.qt.io/qt-6/qml-var.html#change-notification-semantics

Also use "let" instead of "var" in AppletDelegate onClicked, to ensure
the variables are in correct scope and properly reset.


(cherry picked from commit 3088e75c0fe91b7880515a137959a7723da74e78)

Co-authored-by: Akseli Lahtinen <akselmo@akselmo.dev>

M  +2    -2    desktoppackage/contents/explorer/AppletDelegate.qml
M  +1    -1    desktoppackage/contents/views/Desktop.qml

https://invent.kde.org/plasma/plasma-desktop/-/commit/84e0f5cac4d4d262815d845f32e806ecb0ca3b30