[Plastik Decoration] Show application menu button if client has one

CCBUG: 375862

CHANGELOG: Plastik window decoration now supports global menu

Differential Revision: https://phabricator.kde.org/D5131
This commit is contained in:
Kai Uwe Broulik 2017-03-22 16:50:34 +01:00
parent ffbb25497c
commit 3e0ddba683

View file

@ -144,8 +144,7 @@ DecorationButton {
visible = Qt.binding(function() { return decoration.client.providesContextHelp});
}
if (buttonType == DecorationOptions.DecorationButtonApplicationMenu) {
// visible = decoration.appMenu;
visible = false;
visible = Qt.binding(function() { return decoration.client.hasApplicationMenu; });
}
}
onHoveredChanged: colorize()