use ApplicationManaget.empty instead of SurfaceManager.empty
commitc9f4dde5be93832ff7f4448220d8c41ed5bb41fc
authorDaniel d'Andrada <daniel.dandrada@canonical.com>
dateThu 5 Jun 2014, 16:37 (12 years ago)
parent17e290e
qml/Shell.qml+6−6
@@ -218,6 +218,12 @@ FocusScope {
218218 Connections {
219219 target: ApplicationManager
220220 onFocusRequested: { stages.show(); }
221+
222+ onEmptyChanged: {
223+ if (ApplicationManager.empty) {
224+ stages.hide();
225+ }
226+ }
221227 }
222228
223229 Loader {
@@ -265,12 +271,6 @@ FocusScope {
265271 surface.release();
266272 }
267273 }
268−
269− onEmptyChanged: {
270− if (SurfaceManager.empty) {
271− stages.hide();
272− }
273− }
274274 }
275275
276276 Lockscreen {