mirror of
https://github.com/KDE/latte-dock.git
synced 2025-02-09 05:57:39 +03:00
fix #53
--update isHidden flag in the start except the end of slide out animation --fix also the right click behavior concerning the AutoHide, latest commits concerning #25 had broken the behavior
This commit is contained in:
parent
25f901cdee
commit
ec03baf6a1
@ -287,6 +287,10 @@ Item{
|
||||
SequentialAnimation{
|
||||
id: slidingAnimationAutoHiddenOut
|
||||
|
||||
ScriptAction{
|
||||
script: dock.visibility.isHidden = true;
|
||||
}
|
||||
|
||||
PropertyAnimation {
|
||||
target: layoutsContainer
|
||||
property: root.isVertical ? "x" : "y"
|
||||
@ -295,10 +299,14 @@ Item{
|
||||
easing.type: Easing.OutQuad
|
||||
}
|
||||
|
||||
onStopped: {
|
||||
ScriptAction{
|
||||
script: updateMaskArea();
|
||||
}
|
||||
|
||||
/*onStopped: {
|
||||
dock.visibility.isHidden = true;
|
||||
updateMaskArea();
|
||||
}
|
||||
}*/
|
||||
|
||||
function init() {
|
||||
if (!dock.visibility.blockHiding)
|
||||
@ -317,13 +325,16 @@ Item{
|
||||
easing.type: Easing.OutQuad
|
||||
}
|
||||
|
||||
onStopped: {
|
||||
}
|
||||
|
||||
function init() {
|
||||
if (!dock.visibility.blockHiding)
|
||||
dock.visibility.isHidden = false;
|
||||
|
||||
updateMaskArea();
|
||||
|
||||
if (slidingAnimationAutoHiddenOut.running) {
|
||||
slidingAnimationAutoHiddenOut.stop();
|
||||
}
|
||||
|
||||
start();
|
||||
}
|
||||
}
|
||||
|
@ -875,10 +875,11 @@ DragDrop.DropArea {
|
||||
//this is used when dragging a task in order to not hide the dock
|
||||
//and also by the menu appearing from tasks for the same reason
|
||||
function slotDisableHiding(value) {
|
||||
if (plasmoid.userConfiguring)
|
||||
if (root.editMode) {
|
||||
return;
|
||||
|
||||
dock.visibility.blockHiding = !value;
|
||||
}
|
||||
|
||||
dock.visibility.blockHiding = value;
|
||||
}
|
||||
|
||||
function updateAutomaticIconSize() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user