fix onboarding not optimizing cpu and added onboarding to add preset usernames

This commit is contained in:
Kevin Froman 2021-01-18 04:29:44 +00:00
parent df292afe69
commit f74fd0d03d

View File

@ -8,6 +8,7 @@ from typing import Union
from filepaths import onboarding_mark_file from filepaths import onboarding_mark_file
from onionrtypes import JSONSerializable from onionrtypes import JSONSerializable
from onionrtypes import OnboardingConfig from onionrtypes import OnboardingConfig
from onionrplugins import onionrevents
import config import config
""" """
This program is free software: you can redistribute it and/or modify This program is free software: you can redistribute it and/or modify
@ -68,12 +69,4 @@ def set_config_from_onboarding(config_settings: OnboardingConfig):
get(config_settings, 'plainContrib')) get(config_settings, 'plainContrib'))
config.set('onboarding.done', True, savefile=True) config.set('onboarding.done', True, savefile=True)
onionrevents.event("onboard", config_settings)
def set_onboarding_finished():
"""Create the onboarding completed setting file"""
Path(onboarding_mark_file).touch()
def is_onboarding_finished() -> bool:
return True