on xenial help sign in
hide the indicator's man and chart actions

not supported under Mir

commit0386293ed9755acc3df2851c76d0990109271e0c authorLukáš Tinkl <lukas.tinkl@canonical.com> dateTue 21 Jun 2016, 14:14 (10 years ago) parent963fe17
2 files changed+6−3
qml/Components/KeymapSwitcher.qml−1 qml/Panel/Indicators/MenuItemFactory.qml+6−2
qml/Components/KeymapSwitcher.qml−1
@@ -75,7 +75,6 @@ Item {
7575 property variant currentAction: action("current")
7676 property variant activeAction: action("active")
7777
78−
7978 Component.onCompleted: actionGroup.start();
8079 }
8180
qml/Panel/Indicators/MenuItemFactory.qml+6−2
@@ -1052,8 +1052,12 @@ Item {
10521052 }
10531053
10541054 // specialize for indicator-keyboard
1055− if (context === "indicator-keyboard" && modelData.isRadio) {
1056− return keymapMenu;
1055+ if (context === "indicator-keyboard") {
1056+ if (modelData.isRadio) {
1057+ return keymapMenu;
1058+ } else if (modelData.action === "indicator.map" || modelData.action === "indicator.chart") {
1059+ return null; // map and chart not available
1060+ }
10571061 }
10581062
10591063 if (modelData.type !== undefined && modelData.type !== "") {