mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-29 15:03:09 +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,8 +132,11 @@ Item {
|
|||
}
|
||||
onPressed: delegate.z = 10;
|
||||
onClicked: {
|
||||
//window.hide();
|
||||
window.setSingleActiveWindow(model.index, delegate);
|
||||
if (model.IsActive) {
|
||||
window.hide();
|
||||
} else {
|
||||
window.setSingleActiveWindow(model.index, delegate);
|
||||
}
|
||||
}
|
||||
onReleased: {
|
||||
delegate.z = 0;
|
||||
|
|
|
|||
Loading…
Reference in a new issue