mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-08-03 18:24:46 +00:00
close anim if window active
This commit is contained in:
parent
8f39bd3828
commit
9f25435d82
1 changed files with 5 additions and 2 deletions
|
|
@ -132,9 +132,12 @@ Item {
|
||||||
}
|
}
|
||||||
onPressed: delegate.z = 10;
|
onPressed: delegate.z = 10;
|
||||||
onClicked: {
|
onClicked: {
|
||||||
//window.hide();
|
if (model.IsActive) {
|
||||||
|
window.hide();
|
||||||
|
} else {
|
||||||
window.setSingleActiveWindow(model.index, delegate);
|
window.setSingleActiveWindow(model.index, delegate);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
onReleased: {
|
onReleased: {
|
||||||
delegate.z = 0;
|
delegate.z = 0;
|
||||||
if (Math.abs(background.x) > background.width/2) {
|
if (Math.abs(background.x) > background.width/2) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue