rectified visual switch between local node & remote node

This commit is contained in:
stoffu 2018-01-24 15:16:34 +09:00
parent 89ec822ba5
commit af882e87f5
No known key found for this signature in database
GPG key ID: 41DAB8343A9EC012
2 changed files with 12 additions and 4 deletions

View file

@ -248,7 +248,7 @@ Rectangle {
}
GridLayout {
visible: !isMobile
visible: !isMobile && !persistentSettings.useRemoteNode
id: daemonStatusRow
columns: (isMobile) ? 2 : 4
StandardButton {
@ -325,7 +325,7 @@ Rectangle {
RowLayout {
visible: daemonAdvanced.checked && !isMobile
visible: daemonAdvanced.checked && !isMobile && !persistentSettings.useRemoteNode
id: daemonFlagsRow
Label {
id: daemonFlagsLabel
@ -343,7 +343,7 @@ Rectangle {
RowLayout {
Layout.fillWidth: true
visible: daemonAdvanced.checked || isMobile
visible: (daemonAdvanced.checked || isMobile) && persistentSettings.useRemoteNode
Label {
id: daemonLoginLabel
Layout.fillWidth: true
@ -354,7 +354,7 @@ Rectangle {
}
ColumnLayout {
visible: daemonAdvanced.checked || isMobile
visible: (daemonAdvanced.checked || isMobile) && persistentSettings.useRemoteNode
LineEdit {
id: daemonUsername
Layout.preferredWidth: 100 * scaleRatio

View file

@ -130,6 +130,10 @@ ColumnLayout {
uncheckedIcon: "../images/uncheckedIcon.png"
checked: !appWindow.persistentSettings.useRemoteNode && !isAndroid && !isIOS
visible: !isAndroid && !isIOS
onClicked: {
checked = true;
remoteNode.checked = false;
}
}
}
@ -175,6 +179,10 @@ ColumnLayout {
checkedIcon: "../images/checkedVioletIcon.png"
uncheckedIcon: "../images/uncheckedIcon.png"
checked: appWindow.persistentSettings.useRemoteNode
onClicked: {
checked = true
localNode.checked = false
}
}
}