SettingsNode: forbid 'data-dir', 'bootstrap-daemon-address' flags

This commit is contained in:
xiphon 2020-04-27 13:13:38 +00:00
parent 585fb2810d
commit 3d24300963

View file

@ -412,7 +412,12 @@ Rectangle{
placeholderFontSize: 15
text: persistentSettings.daemonFlags
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 {