1
0
mirror of synced 2025-01-31 03:53:44 +01:00

fix: Invalid theme load error

This commit is contained in:
WerWolv 2023-02-12 17:39:47 +01:00
parent 54ef5785cd
commit 0b18930017

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;