mirror of
https://github.com/monero-project/monero-gui.git
synced 2024-12-23 03:59:38 +00:00
WizardDaemonSettings: add reset button to db location
This commit is contained in:
parent
02ae14fd6b
commit
684fd941fb
1 changed files with 10 additions and 1 deletions
|
@ -82,11 +82,20 @@ ColumnLayout {
|
|||
Layout.fillWidth: true
|
||||
|
||||
readOnly: true
|
||||
labelText: qsTr("Blockchain location (optional)") + translationManager.emptyString
|
||||
labelText: {
|
||||
const label = qsTr("Blockchain location (optional)");
|
||||
if (persistentSettings.blockchainDataDir) {
|
||||
const style = "<style type='text/css'>a {cursor:pointer;text-decoration: none; color: #FF6C3C}</style>";
|
||||
return label + style + "<a href='#'> (%1)</a>".arg(qsTr("Reset")) + translationManager.emptyString;
|
||||
} else {
|
||||
return label + translationManager.emptyString;
|
||||
}
|
||||
}
|
||||
labelFontSize: 14
|
||||
placeholderText: qsTr("Default") + translationManager.emptyString
|
||||
placeholderFontSize: 15
|
||||
text: persistentSettings.blockchainDataDir
|
||||
onLabelLinkActivated: persistentSettings.blockchainDataDir = ""
|
||||
|
||||
MoneroComponents.InlineButton {
|
||||
small: true
|
||||
|
|
Loading…
Reference in a new issue