mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-29 15:03:09 +00:00
taskpanel: Fix close action
This commit is contained in:
parent
cdb0c91236
commit
3453760dd3
1 changed files with 3 additions and 3 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue