@@ -107,6 +107,8 @@ FocusScope {
107107 if (application == null) {
108108 return;
109109 }
110+ edgeDemo.stopDemo();
111+ greeter.hide();
110112 if (application.stage == ApplicationInfo.MainStage || !sideStage.enabled) {
111113 mainStage.activateApplication(appId, addDelay);
112114 } else {
@@ -541,6 +543,7 @@ FocusScope {
541543 greeter.hide()
542544 }
543545 }
546+ onFocusRequested: shell.activateApplication(appId)
544547 }
545548 }
546549
@@ -685,12 +688,9 @@ FocusScope {
685688 }
686689 }
687690 onDashSwipeChanged: if (dashSwipe && stages.shown) dash.setCurrentScope("applications.scope", false, true)
688− onLauncherApplicationSelected:{
689− if (edgeDemo.running)
690− return;
691−
692− greeter.hide()
693− shell.activateApplication(appId)
691+ onLauncherApplicationSelected: {
692+ if (!edgeDemo.running)
693+ shell.activateApplication(appId)
694694 }
695695 onShownChanged: {
696696 if (shown) {