Replaced part of Legacy code with EULAController

This commit is contained in:
sTiKyt 2020-08-11 20:18:17 +03:00
parent 975c2f5b83
commit 44ad5cc34d
No known key found for this signature in database
GPG Key ID: 510E1C3C9B2414B4

View File

@ -12,14 +12,17 @@ import Defs.ActionManager.main_runner as main_runner
import Defs.ActionManager.Server.server_runner as server_runner import Defs.ActionManager.Server.server_runner as server_runner
import Defs.ActionManager.simple_informant as simple_informant import Defs.ActionManager.simple_informant as simple_informant
import Defs.FeatureManager.feature_prompt as prompt import Defs.FeatureManager.feature_prompt as prompt
from controllers.EULA_controller import EULAController
# simple_informant.license_handler() # simple_informant.license_handler()
# agreement = simple_informant.terms_of_service_message() # agreement = simple_informant.terms_of_service_message()
# if not agreement: # if not agreement:
# exit() # exit()
# TODO replace everything above # TODO replace everything above
if EULAController().check_eula_existence() is False:
EULAController().generate_new_eula()
if EULAController().check_eula_confirmation() is False:
exit()
# FIXME new code above # FIXME new code above