mirror of
https://github.com/monero-project/monero-gui.git
synced 2024-11-17 08:17:59 +00:00
Merge pull request #2792
d21c22b
SettingsNode: blockchain location 'Reset' button (xiphon)
This commit is contained in:
commit
0643607ec3
1 changed files with 4 additions and 5 deletions
|
@ -382,14 +382,12 @@ Rectangle{
|
|||
labelFontSize: 14
|
||||
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
|
||||
labelButtonText: qsTr("Reset") + translationManager.emptyString
|
||||
labelButtonVisible: text
|
||||
placeholderText: qsTr("(default)") + translationManager.emptyString
|
||||
placeholderFontSize: 15
|
||||
readOnly: true
|
||||
text: {
|
||||
if(persistentSettings.blockchainDataDir.length > 0){
|
||||
return persistentSettings.blockchainDataDir;
|
||||
} else { return "" }
|
||||
}
|
||||
text: persistentSettings.blockchainDataDir
|
||||
addressValidation: false
|
||||
onInputLabelLinkActivated: {
|
||||
//mouse.accepted = false
|
||||
|
@ -399,6 +397,7 @@ Rectangle{
|
|||
blockchainFileDialog.open();
|
||||
blockchainFolder.focus = true;
|
||||
}
|
||||
onLabelButtonClicked: persistentSettings.blockchainDataDir = ""
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue