mirror of
https://github.com/monero-project/monero-gui.git
synced 2025-01-09 20:40:27 +00:00
SettingsNode: forbid 'data-dir', 'bootstrap-daemon-address' flags
This commit is contained in:
parent
585fb2810d
commit
3d24300963
1 changed files with 6 additions and 1 deletions
|
@ -412,7 +412,12 @@ Rectangle{
|
||||||
placeholderFontSize: 15
|
placeholderFontSize: 15
|
||||||
text: persistentSettings.daemonFlags
|
text: persistentSettings.daemonFlags
|
||||||
addressValidation: false
|
addressValidation: false
|
||||||
onEditingFinished: persistentSettings.daemonFlags = daemonFlags.text;
|
error: text.match(/(^|\s)--(data-dir|bootstrap-daemon-address)/)
|
||||||
|
onEditingFinished: {
|
||||||
|
if (!daemonFlags.error) {
|
||||||
|
persistentSettings.daemonFlags = daemonFlags.text;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
RowLayout {
|
RowLayout {
|
||||||
|
|
Loading…
Reference in a new issue