mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-26 14:23:09 +00:00
homescreen: Close app drawer when app is launched
This commit is contained in:
parent
dd3303818b
commit
626089800a
2 changed files with 8 additions and 0 deletions
|
|
@ -36,11 +36,15 @@ MouseArea {
|
||||||
}
|
}
|
||||||
|
|
||||||
onClicked: {
|
onClicked: {
|
||||||
|
// launch app
|
||||||
if (model.applicationRunning) {
|
if (model.applicationRunning) {
|
||||||
delegate.launch(0, 0, "", model.applicationName, model.applicationStorageId);
|
delegate.launch(0, 0, "", model.applicationName, model.applicationStorageId);
|
||||||
} else {
|
} else {
|
||||||
delegate.launch(delegate.x + (PlasmaCore.Units.smallSpacing * 2), delegate.y + (PlasmaCore.Units.smallSpacing * 2), icon.source, model.applicationName, model.applicationStorageId);
|
delegate.launch(delegate.x + (PlasmaCore.Units.smallSpacing * 2), delegate.y + (PlasmaCore.Units.smallSpacing * 2), icon.source, model.applicationName, model.applicationStorageId);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// close the app drawer
|
||||||
|
MobileShell.HomeScreenControls.openHomeScreen();
|
||||||
}
|
}
|
||||||
|
|
||||||
//preventStealing: true
|
//preventStealing: true
|
||||||
|
|
|
||||||
|
|
@ -34,11 +34,15 @@ MouseArea {
|
||||||
}
|
}
|
||||||
|
|
||||||
onClicked: {
|
onClicked: {
|
||||||
|
// launch app
|
||||||
if (model.applicationRunning) {
|
if (model.applicationRunning) {
|
||||||
delegate.launch(0, 0, "", model.applicationName, model.applicationStorageId);
|
delegate.launch(0, 0, "", model.applicationName, model.applicationStorageId);
|
||||||
} else {
|
} else {
|
||||||
delegate.launch(delegate.x + (PlasmaCore.Units.smallSpacing * 2), delegate.y + (PlasmaCore.Units.smallSpacing * 2), icon.source, model.applicationName, model.applicationStorageId);
|
delegate.launch(delegate.x + (PlasmaCore.Units.smallSpacing * 2), delegate.y + (PlasmaCore.Units.smallSpacing * 2), icon.source, model.applicationName, model.applicationStorageId);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// close the app drawer
|
||||||
|
MobileShell.HomeScreenControls.openHomeScreen();
|
||||||
}
|
}
|
||||||
hoverEnabled: true
|
hoverEnabled: true
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue