on xenial help sign in
use ApplicationManaget.empty instead of SurfaceManager.empty
c9f4ddeDaniel d'Andrada
qml/Shell.qml+6−6
@@ -218,6 +218,12 @@ FocusScope {
218 Connections {
218 Connections {
219 target: ApplicationManager
219 target: ApplicationManager
220 onFocusRequested: { stages.show(); }
220 onFocusRequested: { stages.show(); }
221+
222+ onEmptyChanged: {
223+ if (ApplicationManager.empty) {
224+ stages.hide();
225+ }
226+ }
221 }
227 }
222
228
223 Loader {
229 Loader {
@@ -265,12 +271,6 @@ FocusScope {
265 surface.release();
271 surface.release();
266 }
272 }
267 }
273 }
268−
269− onEmptyChanged: {
270− if (SurfaceManager.empty) {
271− stages.hide();
272− }
273− }
274 }
274 }
275
275
276 Lockscreen {
276 Lockscreen {