mirror of
https://github.com/KDE/latte-dock.git
synced 2025-01-11 13:18:13 +03:00
unblock launcher in the end of bouncing animation
--there are launchers that do not trigger properly theirs apps, so in the end of the animation the launcher was remaining locked and wasnt animated because it was waiting for the app window to be created. This commit fixes this, if the launcher at the end of the bouncing animation is not in removal stage the it is properly unblocked
This commit is contained in:
parent
e9750c4143
commit
3839ee1e9a
@ -76,6 +76,7 @@ MouseArea{
|
||||
property bool inBlockingAnimation: false
|
||||
property bool inBouncingAnimation: false
|
||||
property bool inPopup: false
|
||||
property bool inRemoveStage: false
|
||||
|
||||
property bool isActive: (IsActive === true) ? true : false
|
||||
property bool isDemandingAttention: (IsDemandingAttention === true) ? true : false
|
||||
@ -1361,6 +1362,7 @@ MouseArea{
|
||||
ListView.onRemove: SequentialAnimation {
|
||||
id: taskRealRemovalAnimation
|
||||
PropertyAction { target: mainItemContainer; property: "ListView.delayRemove"; value: true }
|
||||
PropertyAction { target: mainItemContainer; property: "inRemoveStage"; value: true }
|
||||
|
||||
//Animation Add/Remove (1) - when is window with no launcher, animations enabled
|
||||
//Animation Add/Remove (4) - the user removes a launcher, animation enabled
|
||||
|
@ -531,6 +531,11 @@ Item{
|
||||
|
||||
mainItemContainer.setBlockingAnimation(false);
|
||||
mainItemContainer.animationEnded();
|
||||
|
||||
if (!mainItemContainer.inRemoveStage) {
|
||||
mainItemContainer.inBouncingAnimation = false;
|
||||
root.removeWaitingLauncher(mainItemContainer.launcherUrl);
|
||||
}
|
||||
}
|
||||
|
||||
function clearAnimationsSignals() {
|
||||
|
Loading…
Reference in New Issue
Block a user