mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-29 15:03:09 +00:00
Fix task jump
This commit is contained in:
parent
daa40c0759
commit
2db6d393dc
1 changed files with 1 additions and 1 deletions
|
|
@ -91,7 +91,7 @@ NanoShell.FullScreenOverlay {
|
||||||
// skip to first active task
|
// skip to first active task
|
||||||
if (window.wasInActiveTask) {
|
if (window.wasInActiveTask) {
|
||||||
tasksView.currentIndex = window.model.activeTask.row;
|
tasksView.currentIndex = window.model.activeTask.row;
|
||||||
tasksView.contentX = Math.max(0, Math.min(tasksView.contentWidth, window.model.activeTask.row * (tasksView.width + tasksView.spacing)));
|
tasksView.positionViewAtIndex(window.model.activeTask.row, ListView.SnapPosition);
|
||||||
}
|
}
|
||||||
|
|
||||||
window.visible = true;
|
window.visible = true;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue