MCPcopy Create free account
hub / github.com/chrxh/alien / init

Method init

source/Gui/LoginController.cpp:15–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13#include "MainLoopEntityController.h"
14
15void LoginController::init(SimulationFacade simulationFacade, PersisterFacade persisterFacade)
16{
17 _simulationFacade = simulationFacade;
18 _persisterFacade = persisterFacade;
19 _taskProcessor = _TaskProcessor::createTaskProcessor(_persisterFacade);
20
21 auto& settings = GlobalSettings::get();
22 _remember = settings.getValue("controller.login.remember", _remember);
23 _shareGpuInfo = settings.getValue("controller.login.share gpu info", _shareGpuInfo);
24
25 if (_remember) {
26 _userName = settings.getValue("dialogs.login.user name", std::string());
27 _password = settings.getValue("dialogs.login.password", std::string());
28 onLogin();
29 }
30}
31
32void LoginController::shutdown()
33{

Callers

nothing calls this directly

Calls 1

getValueMethod · 0.80

Tested by

no test coverage detected