[aurorae] Fix state changes for maximize/restore button in plastik theme

A check for whether the button is the maximize/restore button was still
for the old syntax causing always the maximize button and never the
restore to show.

BUG: 354702
FIXED-IN: 5.4.3
This commit is contained in:
Martin Gräßlin 2015-11-02 10:06:23 +01:00
parent f5a3a402f1
commit 7c3e4afe54

View file

@ -114,7 +114,7 @@ DecorationButton {
Item {
property int imageWidth: button.width > 14 ? button.width - 2 * Math.floor(button.width/3.5) : button.width - 6
property int imageHeight: button.height > 14 ? button.height - 2 * Math.floor(button.height/3.5) : button.height - 6
property string source: "image://plastik/" + button.buttonType + "/" + decoration.client.active + "/" + ((buttonType == "A") ? decoration.client.maximized : button.toggled)
property string source: "image://plastik/" + button.buttonType + "/" + decoration.client.active + "/" + ((buttonType == DecorationOptions.DecorationButtonMaximizeRestore) ? decoration.client.maximized : button.toggled)
anchors.fill: parent
Image {
id: shadowImage