on xenial help sign in
hide the indicator's man and chart actions
0386293Lukáš Tinkl
qml/Components/KeymapSwitcher.qml−1
@@ -75,7 +75,6 @@ Item {
75 property variant currentAction: action("current")
75 property variant currentAction: action("current")
76 property variant activeAction: action("active")
76 property variant activeAction: action("active")
77
77
78−
79 Component.onCompleted: actionGroup.start();
78 Component.onCompleted: actionGroup.start();
80 }
79 }
81
80
qml/Panel/Indicators/MenuItemFactory.qml+6−2
@@ -1052,8 +1052,12 @@ Item {
1052 }
1052 }
1053
1053
1054 // specialize for indicator-keyboard
1054 // specialize for indicator-keyboard
1055− if (context === "indicator-keyboard" && modelData.isRadio) {
1055+ if (context === "indicator-keyboard") {
1056+ if (modelData.isRadio) {
1056− return keymapMenu;
1057+ return keymapMenu;
1058+ } else if (modelData.action === "indicator.map" || modelData.action === "indicator.chart") {
1059+ return null; // map and chart not available
1060+ }
1057 }
1061 }
1058
1062
1059 if (modelData.type !== undefined && modelData.type !== "") {
1063 if (modelData.type !== undefined && modelData.type !== "") {