aboutsummaryrefslogtreecommitdiff
path: root/pages
diff options
context:
space:
mode:
authorplowsof <77655812+plowsof@users.noreply.github.com>2022-07-28 01:57:41 +0100
committerGitHub <noreply@github.com>2022-07-28 01:57:41 +0100
commitf796be37ce25bf0aee899f6f41265b6bf83fe19e (patch)
treef320c0dd932283c11ecd433345442fe491e01dcb /pages
parent064c145aa8dc68d28ac8b4aa04ae8b4dbad2e2ce (diff)
downloadmonzero-gui-f796be37ce25bf0aee899f6f41265b6bf83fe19e.tar.gz
monzero-gui-f796be37ce25bf0aee899f6f41265b6bf83fe19e.tar.xz
monzero-gui-f796be37ce25bf0aee899f6f41265b6bf83fe19e.zip
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 https://github.com/monero-project/monero-gui/blob/064c145aa8dc68d28ac8b4aa04ae8b4dbad2e2ce/wizard/WizardRestoreWallet1.qml#L277 prevents you from copy and pasting the 'wrong' string which might be annoying
Diffstat (limited to 'pages')
-rw-r--r--pages/settings/SettingsInfo.qml2
1 files changed, 1 insertions, 1 deletions
diff --git a/pages/settings/SettingsInfo.qml b/pages/settings/SettingsInfo.qml
index 625b39ad..93f35b23 100644
--- a/pages/settings/SettingsInfo.qml
+++ b/pages/settings/SettingsInfo.qml
@@ -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) {