Add configuration option to disable magic
This commit is contained in:
parent
d18b5eaa43
commit
a8abdff274
@ -10,6 +10,7 @@ ConfigurationBase {
|
|||||||
|
|
||||||
showCommunityLinks: true
|
showCommunityLinks: true
|
||||||
|
|
||||||
|
magicEnabled: true
|
||||||
networkSettingsEnabled: true
|
networkSettingsEnabled: true
|
||||||
apiSettingsEnabled: true
|
apiSettingsEnabled: true
|
||||||
mqttSettingsEnabled: true
|
mqttSettingsEnabled: true
|
||||||
|
|||||||
@ -9,7 +9,8 @@ Item {
|
|||||||
|
|
||||||
property bool showCommunityLinks: false
|
property bool showCommunityLinks: false
|
||||||
|
|
||||||
// Enable/disable entries in the system settings
|
// Enable/disable certain features
|
||||||
|
property bool magicEnabled: false
|
||||||
property bool networkSettingsEnabled: false
|
property bool networkSettingsEnabled: false
|
||||||
property bool apiSettingsEnabled: false
|
property bool apiSettingsEnabled: false
|
||||||
property bool mqttSettingsEnabled: false
|
property bool mqttSettingsEnabled: false
|
||||||
|
|||||||
@ -151,7 +151,7 @@ Drawer {
|
|||||||
text: qsTr("Magic")
|
text: qsTr("Magic")
|
||||||
iconName: "../images/magic.svg"
|
iconName: "../images/magic.svg"
|
||||||
progressive: false
|
progressive: false
|
||||||
visible: root.currentEngine && root.currentEngine.jsonRpcClient.currentHost && root.currentEngine.jsonRpcClient.connected
|
visible: root.currentEngine && root.currentEngine.jsonRpcClient.currentHost && root.currentEngine.jsonRpcClient.connected && Configuration.magicEnabled
|
||||||
onClicked: {
|
onClicked: {
|
||||||
root.openMagicSettings();
|
root.openMagicSettings();
|
||||||
root.close();
|
root.close();
|
||||||
|
|||||||
Reference in New Issue
Block a user