Merge pull request #2792

d21c22b SettingsNode: blockchain location 'Reset' button (xiphon)
This commit is contained in:
luigi1111 2020-03-27 10:16:58 -05:00
commit 0643607ec3
No known key found for this signature in database
GPG Key ID: F4ACA0183641E010

View File

@ -382,14 +382,12 @@ Rectangle{
labelFontSize: 14 labelFontSize: 14
property string style: "<style type='text/css'>a {cursor:pointer;text-decoration: none; color: #FF6C3C}</style>" property string style: "<style type='text/css'>a {cursor:pointer;text-decoration: none; color: #FF6C3C}</style>"
labelText: qsTr("Blockchain location") + style + " <a href='#'> (%1)</a>".arg(qsTr("Change")) + translationManager.emptyString labelText: qsTr("Blockchain location") + style + " <a href='#'> (%1)</a>".arg(qsTr("Change")) + translationManager.emptyString
labelButtonText: qsTr("Reset") + translationManager.emptyString
labelButtonVisible: text
placeholderText: qsTr("(default)") + translationManager.emptyString placeholderText: qsTr("(default)") + translationManager.emptyString
placeholderFontSize: 15 placeholderFontSize: 15
readOnly: true readOnly: true
text: { text: persistentSettings.blockchainDataDir
if(persistentSettings.blockchainDataDir.length > 0){
return persistentSettings.blockchainDataDir;
} else { return "" }
}
addressValidation: false addressValidation: false
onInputLabelLinkActivated: { onInputLabelLinkActivated: {
//mouse.accepted = false //mouse.accepted = false
@ -399,6 +397,7 @@ Rectangle{
blockchainFileDialog.open(); blockchainFileDialog.open();
blockchainFolder.focus = true; blockchainFolder.focus = true;
} }
onLabelButtonClicked: persistentSettings.blockchainDataDir = ""
} }
} }