davidedmundson added a comment.
Do we need to do it programatically? It's should be do-able in a declarative way with Instantiator ContextMenu { MenuItem { text: i18n("Mute"); ... } MenuItem { text: i18n("Default"); visible: ..... } Instantiator { model: PulseObject.ports delegate: MenuItem {} } } REPOSITORY rPLASMAPA Plasma Audio Volume Applet REVISION DETAIL https://phabricator.kde.org/D2314 EMAIL PREFERENCES https://phabricator.kde.org/settings/panel/emailpreferences/ To: Zren, #plasma, #plasma:_design Cc: davidedmundson, drosca, colomar, plasma-devel, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas