homescreen: Only close app drawer after startup feedback is fullscreen

This commit is contained in:
Devin Lin 2022-01-14 23:48:34 -05:00
parent f4f743a868
commit 4b61f55b4a
3 changed files with 7 additions and 6 deletions

View file

@ -42,9 +42,6 @@ MouseArea {
} else {
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

View file

@ -40,9 +40,6 @@ MouseArea {
} else {
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

View file

@ -179,6 +179,13 @@ MouseArea { // use mousearea to ensure clicks don't go behind
easing.type: Easing.OutCubic
}
}
ScriptAction {
script: {
// close the app drawer after it isn't visible
MobileShell.HomeScreenControls.resetHomeScreenPosition();
}
}
}
}
]