mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-22 06:05:38 +00:00
A dummy theme set is now created if no theme sets were found on startup.
This commit is contained in:
parent
40bf018aaa
commit
c9eb9022db
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue