mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-26 14:23:09 +00:00
Add support for task reordering based on ordering history
This commit is contained in:
parent
d18baac31c
commit
3a09014754
4 changed files with 5 additions and 3 deletions
|
|
@ -105,7 +105,7 @@ Repeater {
|
|||
|
||||
onLaunch: (x, y, icon, title) => {
|
||||
if (icon !== "") {
|
||||
print(delegate.iconItem)
|
||||
print(delegate.iconItem);
|
||||
MobileShell.HomeScreenControls.openAppAnimation(
|
||||
icon,
|
||||
title,
|
||||
|
|
|
|||
|
|
@ -205,6 +205,7 @@ QtObject {
|
|||
|
||||
onFinished: {
|
||||
root.currentlyBeingOpened = false;
|
||||
taskSwitcher.tasksModel.requestLastActivatedReorderDelay(false);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -220,6 +221,7 @@ QtObject {
|
|||
taskSwitcher.instantHide();
|
||||
|
||||
if (root.wasInActiveTask) {
|
||||
taskSwitcher.tasksModel.requestLastActivatedReorderDelay(true);
|
||||
taskSwitcher.setSingleActiveWindow(root.currentTaskIndex);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ TaskManager.PipeWireSourceItem {
|
|||
nodeId: waylandItem.nodeId
|
||||
|
||||
onVisibleChanged: {
|
||||
if (visible && waylandItem.uuid.length === 0) {
|
||||
if (visible) {
|
||||
if (model.WinIdList) {
|
||||
waylandItem.uuid = model.WinIdList[0];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -184,7 +184,7 @@ FocusScope {
|
|||
groupMode: TaskManager.TasksModel.GroupDisabled
|
||||
|
||||
screenGeometry: plasmoid.screenGeometry
|
||||
sortMode: TaskManager.TasksModel.SortAlpha
|
||||
sortMode: TaskManager.TasksModel.SortLastActivated
|
||||
|
||||
virtualDesktop: virtualDesktopInfo.currentDesktop
|
||||
activity: activityInfo.currentActivity
|
||||
|
|
|
|||
Loading…
Reference in a new issue