Adjust Aurorae Menu Button close behavior to KCommonDecoration
See 27b667f49562963ea3f13d5b9dd56ff846feb75a
This commit is contained in:
parent
292ceee506
commit
2b2976aa20
1 changed files with 2 additions and 1 deletions
|
@ -25,7 +25,7 @@ DecorationButton {
|
||||||
}
|
}
|
||||||
Timer {
|
Timer {
|
||||||
id: timer
|
id: timer
|
||||||
interval: decoration.doubleClickInterval
|
interval: 150
|
||||||
repeat: false
|
repeat: false
|
||||||
onTriggered: decoration.menuClicked()
|
onTriggered: decoration.menuClicked()
|
||||||
}
|
}
|
||||||
|
@ -46,6 +46,7 @@ DecorationButton {
|
||||||
}
|
}
|
||||||
onReleased: {
|
onReleased: {
|
||||||
parent.pressed = false;
|
parent.pressed = false;
|
||||||
|
timer.stop();
|
||||||
}
|
}
|
||||||
onExited: {
|
onExited: {
|
||||||
if (!parent.pressed) {
|
if (!parent.pressed) {
|
||||||
|
|
Loading…
Reference in a new issue