diff options
Diffstat (limited to 'src/gui/theme.cpp')
-rw-r--r-- | src/gui/theme.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/gui/theme.cpp b/src/gui/theme.cpp index 4708a48d0..1d2c1d2b2 100644 --- a/src/gui/theme.cpp +++ b/src/gui/theme.cpp @@ -52,14 +52,18 @@ Theme *theme = nullptr; // Set the theme path... static void initDefaultThemePath() { - const ResourceManager *const resman = ResourceManager::getInstance(); defaultThemePath = branding.getStringValue("guiThemePath"); logger->log("defaultThemePath: " + defaultThemePath); - if (!defaultThemePath.empty() && resman->isDirectory(defaultThemePath)) + if (!defaultThemePath.empty() && PhysFs::isDirectory( + defaultThemePath.c_str())) + { return; + } else + { defaultThemePath = "themes/"; + } } Theme::Theme() : |