[sidestage] hide side stage if all side stage apps are closed
commit2ad85ee5de54fd32174df739ef44f3c4de35be99
authorGerry Boland <gerry.boland@canonical.com>
dateThu 20 Feb 2014, 13:36 (13 years ago)
parent6b3f124
qml/Shell.qml+9
@@ -355,6 +355,15 @@ FocusScope {
355355 width: units.gu(40)
356356 height: stages.height
357357 handleExpanded: sideStageRevealer.pressed
358+
359+ Connections {
360+ target: sideStage.applications
361+ onCountChanged: {
362+ if (sideStage.applications.count == 0 && sideStage.shown) { // if all SS app closed, hide side stage
363+ sideStage.hide();
364+ }
365+ }
366+ }
358367 }
359368
360369 Revealer {