mirror of
https://github.com/monero-project/monero-gui.git
synced 2024-12-22 19:49:34 +00:00
trim restore height at info -> change height input
If you accidentally copy and paste a date with a new line character
```
2022-01-01
```
The gui will restore from 2022. I ran into this problem when helping someone just now, after giving them the correct date to copy and paste so they can restore quicker xD caused some confusion.
the reg exp method used here 064c145aa8/wizard/WizardRestoreWallet1.qml (L277)
prevents you from copy and pasting the 'wrong' string which might be annoying
This commit is contained in:
parent
064c145aa8
commit
f796be37ce
1 changed files with 1 additions and 1 deletions
|
@ -191,7 +191,7 @@ Rectangle {
|
|||
inputDialog.onAcceptedCallback = function() {
|
||||
var _restoreHeight;
|
||||
if (inputDialog.inputText) {
|
||||
_restoreHeight = Utils.parseDateStringOrRestoreHeightAsInteger(inputDialog.inputText);
|
||||
_restoreHeight = Utils.parseDateStringOrRestoreHeightAsInteger(inputDialog.inputText.trim());
|
||||
}
|
||||
if (!isNaN(_restoreHeight)) {
|
||||
if(_restoreHeight >= 0) {
|
||||
|
|
Loading…
Reference in a new issue