Move hideIndicatorMenu to be shared between greeter and shell, as both have indicators that want to call it
commit37ab689a8d3c828002279f5dba5aedaca323b69b
authorMichael Terry <michael.terry@canonical.com>
dateThu 13 Mar 2014, 09:49 (13 years ago)
parentef00e38
qml/Components/BasicShell.qml+4
@@ -69,6 +69,10 @@ FocusScope {
6969 Keys.onVolumeUpPressed: volumeControl.volumeUp()
7070 Keys.onVolumeDownPressed: volumeControl.volumeDown()
7171
72+ function hideIndicatorMenu(delay) {
73+ panel.hideIndicatorMenu(delay);
74+ }
75+
7276 focus: true
7377 onFocusChanged: if (!focus) forceActiveFocus();
7478
qml/Shell.qml−4
@@ -412,10 +412,6 @@ BasicShell {
412412 stages.hide()
413413 }
414414
415− function hideIndicatorMenu(delay) {
416− panel.hideIndicatorMenu(delay);
417− }
418−
419415 Item {
420416 id: overlay
421417