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

View File

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