added cpu optimize onboarding option

This commit is contained in:
Kevin Froman 2020-10-22 12:51:20 +00:00
parent 51c3078b90
commit 4847d9bddf
2 changed files with 16 additions and 1 deletions

View File

@ -37,6 +37,10 @@ def set_config_from_onboarding(config_settings: OnboardingConfig):
config.reload()
if get(config_settings, 'optimize'):
config.set('ui.animated_background', False)
config.set('general.insert_deniable_blocks', False)
if get(config_settings, 'stateTarget') or not get(config_settings,
'networkContrib'):
config.set('general.security_level', 1)

View File

@ -219,7 +219,18 @@
<nav class="level">
<div class="level-left">
<div class="level-item">
<i class="icon fas fa-dollar-sign" for="donate"></i> <input type="checkbox" name="donate"> <label for="donate">Donating the price of a coffee to fund development</label>
<i class="icon fas fa-dollar-sign" for="donate"></i> <input type="checkbox" name="donate"> <label for="donate">Donate the price of a coffee</label>
</div>
</div>
</nav>
</div>
</div>
<div class="column is-4">
<div class="box">
<nav class="level">
<div class="level-left">
<div class="level-item">
<i class="icon fas fa-microchip" for="optimize"></i> <input type="checkbox" name="optimize"> <label for="optimize">Optimize CPU</label>
</div>
</div>
</nav>