Merge pull request #1785

950ac55 receive: enable advanced option checkbox2 to persist (mmbyday)
This commit is contained in:
luigi1111 2018-12-07 19:01:46 -06:00
commit c67077e428
No known key found for this signature in database
GPG key ID: F4ACA0183641E010
2 changed files with 4 additions and 4 deletions

View file

@ -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: ""

View file

@ -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
@ -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
}
@ -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