on xenial help sign in
[sidestage] hide side stage if all side stage apps are closed
commite2245de25f17e8fe006c9f564accdd65ac810775 authorGerry Boland <gerry.boland@canonical.com> dateThu 20 Feb 2014, 11:05 (13 years ago) parent127371f2ad85ee
1 file changed+9
qml/Shell.qml+9
qml/Shell.qml+9
@@ -342,6 +342,15 @@ FocusScope {
342342 width: units.gu(40)
343343 height: stages.height
344344 handleExpanded: sideStageRevealer.pressed
345+
346+ Connections {
347+ target: sideStage.applications
348+ onCountChanged: {
349+ if (sideStage.applications.count == 0 && sideStage.shown) { // if all SS app closed, hide side stage
350+ sideStage.hide();
351+ }
352+ }
353+ }
345354 }
346355
347356 Revealer {