summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKai Uwe Broulik <kde@privat.broulik.de>2017-03-22 15:50:34 (GMT)
committerKai Uwe Broulik <kde@privat.broulik.de>2017-03-22 15:50:34 (GMT)
commit3e0ddba683ca68cb50b403cb3893fa2fc9d2d737 (patch)
tree42f687dffc34f399964e257b3a2403f243f02257
parentffbb25497c3f71c05652617f51e34a1c0a2bbb03 (diff)
[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
-rw-r--r--plugins/kdecorations/aurorae/themes/plastik/package/contents/ui/PlastikButton.qml3
1 files changed, 1 insertions, 2 deletions
diff --git a/plugins/kdecorations/aurorae/themes/plastik/package/contents/ui/PlastikButton.qml b/plugins/kdecorations/aurorae/themes/plastik/package/contents/ui/PlastikButton.qml
index 97571a2..39132f7 100644
--- a/plugins/kdecorations/aurorae/themes/plastik/package/contents/ui/PlastikButton.qml
+++ b/plugins/kdecorations/aurorae/themes/plastik/package/contents/ui/PlastikButton.qml
@@ -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()