A dummy theme set is now created if no theme sets were found on startup.

This commit is contained in:
Leon Styhre 2022-06-11 18:35:44 +02:00
parent 40bf018aaa
commit c9eb9022db

View file

@ -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)