@@ -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"
@@ -545,6 +546,17 @@ FocusScope {
549+ function showHome() {
551+ // Animate if moving between application and dash
552+ if (!stages.shown) {
553+ dash.setCurrentScope("home.scope", true, false)
555+ dash.setCurrentScope("home.scope", false, false)
549 id: overlay
561 id: overlay
@@ -632,16 +644,7 @@ FocusScope {
632 width: parent.width
644 width: parent.width
633 dragAreaWidth: shell.edgeSize
645 dragAreaWidth: shell.edgeSize
634 available: (!greeter.shown || greeter.narrowMode) && edgeDemo.launcherEnabled
646 available: (!greeter.shown || greeter.narrowMode) && edgeDemo.launcherEnabled
635− onDashItemSelected: {
647+ onDashItemSelected: showHome()
637− // Animate if moving between application and dash
638− if (!stages.shown) {
639− dash.setCurrentScope("home.scope", true, false)
641− dash.setCurrentScope("home.scope", false, false)
645 onDash: {
648 onDash: {
646 if (stages.shown) {
649 if (stages.shown) {
647 dash.setCurrentScope("applications.scope", true, false)
650 dash.setCurrentScope("applications.scope", true, false)
@@ -749,4 +752,9 @@ FocusScope {
749 indicators: panel.indicators
752 indicators: panel.indicators
750 underlay: underlay
753 underlay: underlay
757+ target: SessionBroadcast
758+ onShowHome: showHome()