on xenial help sign in
add possibility to select an app from the spread from the outside.
commit826aca609f279566411e57c44c4953622efc4e19 authorMichael Zanetti <michael.zanetti@canonical.com> dateThu 20 Mar 2014, 13:18 (13 years ago) parent02fa0f3
2 files changed+7
qml/Shell.qml+3 qml/Stages/PhoneStage.qml+4
qml/Shell.qml+3
@@ -55,6 +55,9 @@ FocusScope {
5555 if (ApplicationManager.findApplication(appId)) {
5656 ApplicationManager.requestFocusApplication(appId);
5757 stages.show();
58+ if (stages.locked && ApplicationManager.focusedApplicationId == appId) {
59+ applicationsDisplayLoader.item.select(appId);
60+ }
5861 } else {
5962 var execFlags = shell.sideStageEnabled ? ApplicationManager.NoFlag : ApplicationManager.ForceMainStage;
6063 ApplicationManager.startApplication(appId, execFlags);
qml/Stages/PhoneStage.qml+4
@@ -38,6 +38,10 @@ Item {
3838 property bool overlayMode: false
3939 property int overlayWidth: 0
4040
41+ function select(appId) {
42+ spreadView.snapTo(priv.indexOf(appId))
43+ }
44+
4145 onMovingChanged: {
4246 if (moving) {
4347 if (ApplicationManager.focusedApplicationId) {