From 54b22d21a8a151fd8e4e1a32a9dcbb090a319995 Mon Sep 17 00:00:00 2001 From: Ilya Kitaev Date: Sun, 9 Oct 2016 21:49:07 +0300 Subject: [PATCH] Wizard: finish page: restore height hidden if not set --- wizard/WizardFinish.qml | 2 +- wizard/WizardMain.qml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wizard/WizardFinish.qml b/wizard/WizardFinish.qml index 890658ab..7c44b7bc 100644 --- a/wizard/WizardFinish.qml +++ b/wizard/WizardFinish.qml @@ -47,7 +47,7 @@ Item { + qsTr("Allow background mining: ") + wizard.settings['allow_background_mining'] + "
" + qsTr("Daemon address: ") + wizard.settings['daemon_address'] + "
" + qsTr("testnet: ") + wizard.settings['testnet'] + "
" - + qsTr("Restore height: ") + wizard.settings['restoreHeight'] + "
" + + (wizard.settings['restore_height'] === undefined ? "" : qsTr("Restore height: ") + wizard.settings['restore_height']) + "
" + translationManager.emptyString return str; } diff --git a/wizard/WizardMain.qml b/wizard/WizardMain.qml index 7b0b2829..3168733b 100644 --- a/wizard/WizardMain.qml +++ b/wizard/WizardMain.qml @@ -137,7 +137,7 @@ Rectangle { appWindow.persistentSettings.auto_donations_amount = settings.auto_donations_amount appWindow.persistentSettings.daemon_address = settings.daemon_address appWindow.persistentSettings.testnet = settings.testnet - appWindow.persistentSettings.restoreHeight = parseInt(settings.restoreHeight) + appWindow.persistentSettings.restore_height = parseInt(settings.restore_height) }