Add configuration option to disable magic
This commit is contained in:
parent
d18b5eaa43
commit
a8abdff274
@ -10,6 +10,7 @@ ConfigurationBase {
|
||||
|
||||
showCommunityLinks: true
|
||||
|
||||
magicEnabled: true
|
||||
networkSettingsEnabled: true
|
||||
apiSettingsEnabled: true
|
||||
mqttSettingsEnabled: true
|
||||
|
||||
@ -9,7 +9,8 @@ Item {
|
||||
|
||||
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 apiSettingsEnabled: false
|
||||
property bool mqttSettingsEnabled: false
|
||||
|
||||
@ -151,7 +151,7 @@ Drawer {
|
||||
text: qsTr("Magic")
|
||||
iconName: "../images/magic.svg"
|
||||
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: {
|
||||
root.openMagicSettings();
|
||||
root.close();
|
||||
|
||||
Reference in New Issue
Block a user