| Summary: | Clicking delete button on a deletable widget fails to enter its "pending deletion" state until Widget Explorer is closed and re-opened | ||
|---|---|---|---|
| Product: | [Plasma] plasmashell | Reporter: | Nate Graham <nate> |
| Component: | Widget Explorer sidebar | Assignee: | Akseli Lahtinen <akselmo> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | akselmo |
| Priority: | HI | Keywords: | regression |
| Version First Reported In: | 6.5.80 | ||
| Target Milestone: | 1.0 | ||
| Platform: | KDE Linux | ||
| OS: | Linux | ||
| Latest Commit: | https://invent.kde.org/plasma/plasma-desktop/-/commit/84e0f5cac4d4d262815d845f32e806ecb0ca3b30 | Version Fixed/Implemented In: | 6.5.5 |
| Sentry Crash Report: | |||
| Attachments: | Sample 3rd-party widget | ||
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-desktop/-/merge_requests/3402 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 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 |
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