Commit f3d68ec7 authored by Devin Lin's avatar Devin Lin 🎨
Browse files

Fix close action

parent 1a93bf47
Pipeline #136670 passed with stage
in 51 seconds
......@@ -92,13 +92,13 @@ MobileShell.NavigationPanel {
MobileShell.KWinVirtualKeyboard.active = false;
} else if (taskSwitcher.visible) {
// if task switcher is open, close the current window shown
let indexToClose = root.taskSwitcher.model.index(root.taskSwitcher.currentTaskIndex, 0);
root.taskSwitcher.model.requestClose(indexToClose);
let indexToClose = root.taskSwitcher.tasksModel.index(root.taskSwitcher.currentTaskIndex, 0);
root.taskSwitcher.tasksModel.requestClose(indexToClose);
} else if (plasmoid.nativeInterface.hasCloseableActiveWindow) {
// if task switcher is closed, but there is an active window
if (root.taskSwitcher.model.activeTask !== 0) {
root.taskSwitcher.model.requestClose(root.taskSwitcher.model.activeTask);
if (root.taskSwitcher.tasksModel.activeTask !== 0) {
root.taskSwitcher.tasksModel.requestClose(root.taskSwitcher.tasksModel.activeTask);
}
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment