1
mirror of https://github.com/monero-project/monero-gui synced 2024-11-29 09:05:11 +01:00

Merge pull request #3413

684fd94 WizardDaemonSettings: add reset button to db location (selsta)
This commit is contained in:
luigi1111 2021-04-22 01:53:54 -04:00
commit f57e115e99
No known key found for this signature in database
GPG Key ID: F4ACA0183641E010

View File

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