From 4cb02b676930eca9419b302c370eed9623144723 Mon Sep 17 00:00:00 2001 From: itsmattkc Date: Wed, 8 Apr 2020 02:03:46 +1000 Subject: [PATCH] core: set config defaults a second time before loading Works around an issue where media cache directories would be set before the app name is set (which Qt uses to return the local appdata dirs used to set the cache directories). --- app/core.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/core.cpp b/app/core.cpp index c22a6c9c6..37471e1f8 100644 --- a/app/core.cpp +++ b/app/core.cpp @@ -116,6 +116,10 @@ void Core::Start() // Set up the index manager for renderers IndexManager::CreateInstance(); + // Reset config (Config sets to default on construction already, but we do it again here as a workaround that fixes + // the fact that some of the config paths set by default rely on the app name having been set (in main()) + Config::Current().SetDefaults(); + // Load application config Config::Load();