@@ -221,7 +221,7 @@ Item {
221 onFocusedApplicationIdChanged: {
221 onFocusedApplicationIdChanged: {
222 var appId = ApplicationManager.focusedApplicationId;
222 var appId = ApplicationManager.focusedApplicationId;
224− if (tutorial.running && appId != "" && appId != "unity8-dash") {
224+ if (wizard.active && appId != "" && appId != "unity8-dash") {
225 // If this happens on first boot, we may be in edge
225 // If this happens on first boot, we may be in edge
226 // tutorial or wizard while receiving a call. But a call
226 // tutorial or wizard while receiving a call. But a call
227 // is more important than wizard so just bail out of those.
227 // is more important than wizard so just bail out of those.
@@ -406,7 +406,7 @@ Item {
406 hides: [launcher, panel.indicators]
406 hides: [launcher, panel.indicators]
407 tabletMode: shell.usageScenario != "phone"
407 tabletMode: shell.usageScenario != "phone"
408 launcherOffset: launcher.progress
408 launcherOffset: launcher.progress
409− forcedUnlock: tutorial.running
409+ forcedUnlock: wizard.active
410 background: shell.background
410 background: shell.background
412 // avoid overlapping with Launcher's edge drag area
412 // avoid overlapping with Launcher's edge drag area
@@ -419,12 +419,6 @@ Item {
419 launcher.hide();
419 launcher.hide();
423− if (!tutorial.running) {
428 onEmergencyCall: startLockedApp("dialer-app")
422 onEmergencyCall: startLockedApp("dialer-app")
@@ -479,10 +473,6 @@ Item {
481 function showHome() {
475 function showHome() {
482− if (tutorial.running) {
486 greeter.notifyAboutToFocusApp("unity8-dash");
476 greeter.notifyAboutToFocusApp("unity8-dash");
488 var animate = !lightDM.greeter.active && !stages.shown
478 var animate = !lightDM.greeter.active && !stages.shown
@@ -516,7 +506,6 @@ Item {
516 available: tutorial.panelEnabled
506 available: tutorial.panelEnabled
517 && ((!greeter || !greeter.locked) || AccountsService.enableIndicatorsWhileLocked)
507 && ((!greeter || !greeter.locked) || AccountsService.enableIndicatorsWhileLocked)
518 && (!greeter || !greeter.hasLockedApp)
508 && (!greeter || !greeter.hasLockedApp)
519− contentEnabled: tutorial.panelContentEnabled
520 width: parent.width > units.gu(60) ? units.gu(40) : parent.width
509 width: parent.width > units.gu(60) ? units.gu(40) : parent.width
522 minimizedPanelHeight: units.gu(3)
511 minimizedPanelHeight: units.gu(3)
@@ -556,7 +545,6 @@ Item {
556 && (!greeter.locked || AccountsService.enableLauncherWhileLocked)
545 && (!greeter.locked || AccountsService.enableLauncherWhileLocked)
557 && !greeter.hasLockedApp
546 && !greeter.hasLockedApp
558 inverted: shell.usageScenario !== "desktop"
547 inverted: shell.usageScenario !== "desktop"
559− shadeBackground: !tutorial.running
561 onShowDashHome: showHome()
549 onShowDashHome: showHome()
562 onDash: showDash()
550 onDash: showDash()
@@ -566,10 +554,8 @@ Item {
568 onLauncherApplicationSelected: {
556 onLauncherApplicationSelected: {
569− if (!tutorial.running) {
570− greeter.notifyAboutToFocusApp(appId);
557+ greeter.notifyAboutToFocusApp(appId);
571− shell.activateApplication(appId)
558+ shell.activateApplication(appId);
574 onShownChanged: {
560 onShownChanged: {
575 if (shown) {
561 if (shown) {
@@ -583,22 +569,10 @@ Item {
583 objectName: "tutorial"
569 objectName: "tutorial"
584 anchors.fill: parent
570 anchors.fill: parent
586− // EdgeDragAreas don't work with mice. So to avoid trapping the user,
572+ usageScenario: usageScenario
587− // we skip the tutorial on the Desktop to avoid using them. The
588− // Desktop doesn't use the same spread design anyway. The tutorial is
589− // all a bit of a placeholder on non-phone form factors right now.
590− // When the design team gives us more guidance, we can do something
591− // more clever here.
592− active: usageScenario != "desktop" && AccountsService.demoEdges
594 launcher: launcher
573 launcher: launcher
595 panel: panel
574 panel: panel
596 stage: applicationsDisplayLoader.item
575 stage: applicationsDisplayLoader.item
599− AccountsService.demoEdges = false;
600− active = false; // for immediate response / if AS is having problems