From 3e0ddba683ca68cb50b403cb3893fa2fc9d2d737 Mon Sep 17 00:00:00 2001 From: Kai Uwe Broulik Date: Wed, 22 Mar 2017 16:50:34 +0100 Subject: [PATCH] [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 --- .../themes/plastik/package/contents/ui/PlastikButton.qml | 3 +-- 1 file changed, 1 insertion(+), 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 97571a26ce..39132f725f 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()