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

View File

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