mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-26 14:23:09 +00:00
reset position when launched
This commit is contained in:
parent
e4014bd0ba
commit
cbdb6b6f05
2 changed files with 7 additions and 1 deletions
|
|
@ -39,6 +39,8 @@ LauncherContainer {
|
|||
readonly property int cellHeight: availableCellHeight
|
||||
launcherGrid: root
|
||||
|
||||
signal launched
|
||||
|
||||
frame.width: width
|
||||
|
||||
Repeater {
|
||||
|
|
@ -74,6 +76,7 @@ LauncherContainer {
|
|||
delegate.iconItem.Kirigami.ScenePosition.y + delegate.iconItem.height/2,
|
||||
Math.min(delegate.iconItem.width, delegate.iconItem.height)
|
||||
)});
|
||||
root.launched();
|
||||
}
|
||||
onParentFromLocationChanged: {
|
||||
if (!launcherDragManager.active && parent != parentFromLocation) {
|
||||
|
|
|
|||
|
|
@ -265,7 +265,10 @@ Item {
|
|||
left: parent.left
|
||||
right: parent.right
|
||||
}
|
||||
|
||||
onLaunched: {
|
||||
scrollAnim.to = 0;
|
||||
scrollAnim.restart();
|
||||
}
|
||||
favoriteStrip: favoriteStrip
|
||||
appletsLayout: appletsLayout
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue