Skip to content

Commit

Permalink
receive: enable advanced option checkbox2 to persist
Browse files Browse the repository at this point in the history
  • Loading branch information
mmbyday committed Dec 6, 2018
1 parent 71a1ff6 commit 950ac55
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
1 change: 1 addition & 0 deletions main.qml
Expand Up @@ -1019,6 +1019,7 @@ ApplicationWindow {
property string daemonUsername: ""
property string daemonPassword: ""
property bool transferShowAdvanced: false
property bool receiveShowAdvanced: false
property string blockchainDataDir: ""
property bool useRemoteNode: false
property string remoteNodeAddress: ""
Expand Down
7 changes: 3 additions & 4 deletions pages/Receive.qml
Expand Up @@ -48,7 +48,6 @@ Rectangle {
property var model
property var current_address
property int current_subaddress_table_index: 0
property bool advancedRowVisible: false
property alias receiveHeight: mainLayout.height
property alias addressText : pageReceive.current_address

Expand Down Expand Up @@ -398,9 +397,9 @@ Rectangle {
RowLayout {
CheckBox2 {
id: showAdvancedCheckbox
checked: false
checked: persistentSettings.receiveShowAdvanced
onClicked: {
advancedRowVisible = !advancedRowVisible;
persistentSettings.receiveShowAdvanced = !persistentSettings.receiveShowAdvanced
}
text: qsTr("Advanced options") + translationManager.emptyString
}
Expand All @@ -411,7 +410,7 @@ Rectangle {
columns: (isMobile)? 1 : 2
Layout.fillWidth: true
columnSpacing: 32 * scaleRatio
visible: advancedRowVisible
visible: persistentSettings.receiveShowAdvanced

ColumnLayout {
Layout.alignment: Qt.AlignTop
Expand Down

0 comments on commit 950ac55

Please sign in to comment.