Add GetModule() helper functions, for HID, CAM, and CFG
This commit is contained in:
parent
1b1de23a98
commit
eb3af0f16a
12 changed files with 49 additions and 51 deletions
|
@ -246,12 +246,7 @@ void ConfigureSystem::setConfiguration() {
|
|||
ui->edit_init_time->setDateTime(date_time);
|
||||
|
||||
if (!enabled) {
|
||||
|
||||
auto cfg_interface = Core::System::GetInstance()
|
||||
.ServiceManager()
|
||||
.GetService<Service::CFG::Module::Interface>("cfg:u");
|
||||
ASSERT_MSG(cfg_interface, "cfg:u not started!");
|
||||
cfg = cfg_interface->GetModule();
|
||||
cfg = Service::CFG::GetModule(Core::System::GetInstance());
|
||||
ASSERT_MSG(cfg, "CFG Module missing!");
|
||||
ReadSystemSettings();
|
||||
ui->group_system_settings->setEnabled(false);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue