Commit 3420067e authored by Devin Lin's avatar Devin Lin 🎨 Committed by Bhushan Shah
Browse files

taskpanel: Fix close action

(cherry picked from commit 3453760d)
parent 39ddae15
Pipeline #138972 passed with stage
in 55 seconds
......@@ -139,14 +139,14 @@ PlasmaCore.ColorScope {
} else if (taskSwitcher.visible) {
// if task switcher is open, close the current window shown
taskSwitcher.model.requestClose(taskSwitcher.model.index(taskSwitcher.currentTaskIndex, 0));
taskSwitcher.tasksModel.requestClose(taskSwitcher.tasksModel.index(taskSwitcher.currentTaskIndex, 0));
} else if (plasmoid.nativeInterface.hasCloseableActiveWindow) {
// if task switcher is closed, but there is an active window
var index = taskSwitcher.model.activeTask;
var index = taskSwitcher.tasksModel.activeTask;
if (index) {
taskSwitcher.model.requestClose(index);
taskSwitcher.tasksModel.requestClose(index);
}
}
}
......
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