properly hide stuff in boxsettings too

This commit is contained in:
Michael Zanetti 2019-04-03 14:09:03 +02:00
parent 4cf8a8a886
commit ee56f81efb
2 changed files with 3 additions and 3 deletions

View File

@ -59,6 +59,7 @@ Page {
Pane { Pane {
Layout.fillWidth: true Layout.fillWidth: true
Material.elevation: layout.isGrid ? 1 : 0 Material.elevation: layout.isGrid ? 1 : 0
visible: engine.jsonRpcClient.ensureServerVersion("1.9")
padding: 0 padding: 0
MeaListItemDelegate { MeaListItemDelegate {
@ -68,7 +69,6 @@ Page {
subText: qsTr("Connect this box to %1:cloud").arg(app.systemName) subText: qsTr("Connect this box to %1:cloud").arg(app.systemName)
prominentSubText: false prominentSubText: false
wrapTexts: false wrapTexts: false
visible: engine.jsonRpcClient.ensureServerVersion("1.9")
onClicked: pageStack.push(Qt.resolvedUrl("system/CloudSettingsPage.qml")) onClicked: pageStack.push(Qt.resolvedUrl("system/CloudSettingsPage.qml"))
} }
} }
@ -92,6 +92,7 @@ Page {
Pane { Pane {
Layout.fillWidth: true Layout.fillWidth: true
Material.elevation: layout.isGrid ? 1 : 0 Material.elevation: layout.isGrid ? 1 : 0
visible: engine.jsonRpcClient.ensureServerVersion("1.11")
padding: 0 padding: 0
MeaListItemDelegate { MeaListItemDelegate {
@ -101,7 +102,6 @@ Page {
subText: qsTr("Configure the MQTT broker") subText: qsTr("Configure the MQTT broker")
prominentSubText: false prominentSubText: false
wrapTexts: false wrapTexts: false
visible: engine.jsonRpcClient.ensureServerVersion("1.11")
onClicked: pageStack.push(Qt.resolvedUrl("system/MqttBrokerSettingsPage.qml")) onClicked: pageStack.push(Qt.resolvedUrl("system/MqttBrokerSettingsPage.qml"))
} }
} }

View File

@ -16,7 +16,7 @@ Page {
height: app.iconSize height: app.iconSize
width: height width: height
name: "../images/logs.svg" name: "../images/logs.svg"
visible: settings.showHiddenOptions visible: settings.showHiddenOptions && AppLogController.enabled
MouseArea { MouseArea {
anchors.fill: parent anchors.fill: parent
onClicked: { onClicked: {