mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-29 15:03:09 +00:00
Map indices back to source.
This commit is contained in:
parent
3751f69d40
commit
12ba707277
1 changed files with 2 additions and 2 deletions
|
|
@ -46,7 +46,7 @@ Item {
|
||||||
ScriptAction {
|
ScriptAction {
|
||||||
script: {
|
script: {
|
||||||
if (background.x != 0) {
|
if (background.x != 0) {
|
||||||
plasmoid.nativeInterface.windowModel.requestClose(model.index);
|
plasmoid.nativeInterface.windowModel.requestClose(filteredWindowModel.mapRowToSource(model.index));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -83,7 +83,7 @@ Item {
|
||||||
onPressed: delegate.z = 10;
|
onPressed: delegate.z = 10;
|
||||||
onClicked: {
|
onClicked: {
|
||||||
window.hide();
|
window.hide();
|
||||||
plasmoid.nativeInterface.windowModel.requestActivate(model.index);
|
plasmoid.nativeInterface.windowModel.requestActivate(filteredWindowModel.mapRowToSource(model.index));
|
||||||
}
|
}
|
||||||
onReleased: {
|
onReleased: {
|
||||||
delegate.z = 0;
|
delegate.z = 0;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue