Merge pull request #1848

c2c1260 main: disable resize bar if custom decorations are off (selsta)
This commit is contained in:
luigi1111 2018-12-20 14:35:16 -06:00
commit 806262a5a2
No known key found for this signature in database
GPG Key ID: F4ACA0183641E010

View File

@ -1572,6 +1572,7 @@ ApplicationWindow {
property int minHeight: 400 property int minHeight: 400
MouseArea { MouseArea {
id: resizeArea id: resizeArea
enabled: persistentSettings.customDecorations
hoverEnabled: true hoverEnabled: true
anchors.right: parent.right anchors.right: parent.right
anchors.bottom: parent.bottom anchors.bottom: parent.bottom
@ -1585,6 +1586,7 @@ ApplicationWindow {
Image { Image {
anchors.centerIn: parent anchors.centerIn: parent
visible: persistentSettings.customDecorations
source: parent.containsMouse || parent.pressed ? "images/resizeHovered.png" : source: parent.containsMouse || parent.pressed ? "images/resizeHovered.png" :
"images/resize.png" "images/resize.png"
} }