From c9eb9022db4a7f486af48e7856a59750fb1a6a3a Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Sat, 11 Jun 2022 18:35:44 +0200 Subject: [PATCH] A dummy theme set is now created if no theme sets were found on startup. --- es-core/src/ThemeData.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/es-core/src/ThemeData.cpp b/es-core/src/ThemeData.cpp index 1e99f1e98..9fcfb4cd1 100644 --- a/es-core/src/ThemeData.cpp +++ b/es-core/src/ThemeData.cpp @@ -581,6 +581,12 @@ void ThemeData::populateThemeSets() } } } + + if (mThemeSets.empty()) { + LOG(LogWarning) << "Couldn't find any theme sets, creating dummy entry"; + ThemeSet set {"no-theme-sets", ThemeCapability()}; + mThemeSets[set.getName()] = set; + } } const std::string ThemeData::getThemeFromCurrentSet(const std::string& system)