Merge pull request #3988

f796be3 trim restore height at info -> change height input (plowsof)
This commit is contained in:
luigi1111 2022-08-10 12:19:05 -05:00
commit e668995673
No known key found for this signature in database
GPG key ID: F4ACA0183641E010

View file

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