From 5d2b02097eeb6ed166611a22cef66a8c56b7c997 Mon Sep 17 00:00:00 2001 From: saturneric Date: Mon, 27 Jan 2025 16:51:27 +0100 Subject: refactor: clean up code --- src/core/module/ModuleInit.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/core/module/ModuleInit.cpp') diff --git a/src/core/module/ModuleInit.cpp b/src/core/module/ModuleInit.cpp index 9f282a5f..ed9068c7 100644 --- a/src/core/module/ModuleInit.cpp +++ b/src/core/module/ModuleInit.cpp @@ -78,10 +78,7 @@ auto LoadExternalMods() -> QMap { void LoadGpgFrontendModules(ModuleInitArgs) { // give user ability to give up all modules auto disable_loading_all_modules = - GlobalSettingStation::GetInstance() - .GetSettings() - .value("basic/disable_loading_all_modules", false) - .toBool(); + GetSettings().value("basic/disable_loading_all_modules", false).toBool(); if (disable_loading_all_modules) return; // must init at default thread before core -- cgit v1.2.3