https://bugs.kde.org/show_bug.cgi?id=504891

cwo <cwo....@posteo.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
      Latest Commit|                            |https://invent.kde.org/plas
                   |                            |ma/plasma-desktop/-/commit/
                   |                            |f8532d35a782af807448fde581f
                   |                            |3f7239c77b7d6
             Status|ASSIGNED                    |RESOLVED

--- Comment #4 from cwo <cwo....@posteo.net> ---
Git commit f8532d35a782af807448fde581f3f7239c77b7d6 by Christoph Wolk.
Committed on 29/05/2025 at 17:53.
Pushed by cwo into branch 'master'.

applets/kickoff: recalculate app model binding on rootModel refresh

Kickoff stores (a pointer to) the most recently accessed app category
(including the all-apps category, but not favorites) through a binding
chain fetching the rootModel's modelForRow() on the current index of the
sidebar. That's a method call that does not by itself create a qml
dependency on the main model state, so if the user installs or removes
software, the underlying model is replaced completely (and the existing
one is deleted), but the binding is not updated to point to the new
(sub)model. Accessing the same category again will then fail (as it
reads the old model, now null), until the user selects a different
category first, changing the index and causing the binding to be
reevaluated.

Instead, reevaluate the binding whenever the rootModel is refreshed.

M  +6    -0    applets/kickoff/package/contents/ui/ApplicationsPage.qml

https://invent.kde.org/plasma/plasma-desktop/-/commit/f8532d35a782af807448fde581f3f7239c77b7d6

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to