bugfix + part of the new command arg system

This commit is contained in:
AlexandreRouma
2022-02-18 19:21:02 +01:00
parent f46fa2157b
commit a87aedabb8
5 changed files with 265 additions and 1 deletions

View File

@@ -184,6 +184,7 @@ int sdrpp_main(int argc, char* argv[]) {
// Themes
defConfig["theme"] = "Dark";
defConfig["uiScale"] = 1.0f;
defConfig["modules"] = json::array();
@@ -279,6 +280,9 @@ int sdrpp_main(int argc, char* argv[]) {
core::configManager.conf["moduleInstances"][_name] = newMod;
}
// Load UI scaling
style::uiScale = core::configManager.conf["uiScale"];
core::configManager.release(true);
if (options::opts.serverMode) { return server::main(); }