@@ -23,6 +23,7 @@ import Ubuntu.Gestures 0.1
23import Unity.Launcher 0.1
23import Unity.Launcher 0.1
24import LightDM 0.1 as LightDM
24import LightDM 0.1 as LightDM
25import Powerd 0.1
25import Powerd 0.1
26+import SessionBroadcast 0.1
26import "Dash"
27import "Dash"
27import "Greeter"
28import "Greeter"
28import "Launcher"
29import "Launcher"
@@ -543,6 +544,17 @@ FocusScope {
547+ function showHome() {
549+ // Animate if moving between application and dash
550+ if (!stages.shown) {
551+ dash.setCurrentScope("home.scope", true, false)
553+ dash.setCurrentScope("home.scope", false, false)
547 id: overlay
559 id: overlay
@@ -630,16 +642,7 @@ FocusScope {
630 width: parent.width
642 width: parent.width
631 dragAreaWidth: shell.edgeSize
643 dragAreaWidth: shell.edgeSize
632 available: (!greeter.shown || greeter.narrowMode) && edgeDemo.launcherEnabled
644 available: (!greeter.shown || greeter.narrowMode) && edgeDemo.launcherEnabled
633− onDashItemSelected: {
645+ onDashItemSelected: showHome()
635− // Animate if moving between application and dash
636− if (!stages.shown) {
637− dash.setCurrentScope("home.scope", true, false)
639− dash.setCurrentScope("home.scope", false, false)
643 onDash: {
646 onDash: {
644 if (stages.shown) {
647 if (stages.shown) {
645 dash.setCurrentScope("applications.scope", true, false)
648 dash.setCurrentScope("applications.scope", true, false)
@@ -747,4 +750,9 @@ FocusScope {
747 indicators: panel.indicators
750 indicators: panel.indicators
748 underlay: underlay
751 underlay: underlay
755+ target: SessionBroadcast
756+ onShowHome: showHome()