fix: Invalid theme load error

This commit is contained in:
WerWolv 2023-02-12 17:39:47 +01:00
parent 54ef5785cd
commit 0b18930017
1 changed files with 0 additions and 1 deletions

View File

@ -52,7 +52,6 @@ namespace hex::api {
void ThemeManager::changeTheme(std::string name) {
if (!s_themes.contains(name)) {
if (s_themes.empty()) {
hex::log::error("Theme '{}' does not exist and no other themes are available!", name);
return;
} else {
const std::string &defaultTheme = s_themes.begin()->first;