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

Oliver Beard <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Latest Commit|https://invent.kde.org/plas |https://invent.kde.org/plas
                   |ma/plasma-workspace/-/commi |ma/plasma-workspace/-/commi
                   |t/61ce6443b0fe2f5f950708ae2 |t/df2587fe0c3c86f129aa7fddd
                   |0c79f54c149b63e             |41aa4987ec8e7ce

--- Comment #5 from Oliver Beard <[email protected]> ---
Git commit df2587fe0c3c86f129aa7fddd41aa4987ec8e7ce by Oliver Beard.
Committed on 18/02/2026 at 14:36.
Pushed by olib into branch 'Plasma/6.6'.

applets/systemtray: Fix menu button always showing after opening volume control

The binding on model in the instantiator here seems to not always
trigger an actual update of the instantiator. This then causes the menu
button to always show, even if there are no actions to show, because the
instantiator still has active items.

To fix that, move the binding out of model into its own dedicated
property, then use the length of the actions array for the number of
visible actions. These values should match anyway, not relying on the
instantatior means we remove some indirection. We then bind the
instantiator to the new actions property, which is then correctly
updated with changes to actions.

As one last change, don't rely on clearing the menu every time the model
changes, just remove actions when the instantiator requests them to be
deleted. This makes the menu behaviour more predictable since it's
purely controlled by the instantiator.


(cherry picked from commit 61ce6443b0fe2f5f950708ae20c79f54c149b63e)

Co-authored-by: Arjen Hiemstra <[email protected]>

M  +33   -24   applets/systemtray/qml/ExpandedRepresentation.qml

https://invent.kde.org/plasma/plasma-workspace/-/commit/df2587fe0c3c86f129aa7fddd41aa4987ec8e7ce

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

Reply via email to