Fix bug with empty themes showing up

This commit is contained in:
Henrik Rydgård 2024-01-31 12:20:46 +01:00
parent 14cd094535
commit 591dfdd0c5

View file

@ -114,6 +114,11 @@ static void LoadThemeInfo(const std::vector<Path> &directories) {
// Alright, let's loop through the sections and see if any is a theme.
for (size_t i = 0; i < ini.Sections().size(); i++) {
Section &section = *(ini.Sections()[i].get());
if (section.name().empty()) {
continue;
}
ThemeInfo info;
section.Get("Name", &info.name, section.name().c_str());