Skip to content

Commit

Permalink
Fix bug with empty themes showing up
Browse files Browse the repository at this point in the history
  • Loading branch information
hrydgard committed Jan 31, 2024
1 parent 14cd094 commit 591dfdd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions UI/Theme.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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());

Expand Down

0 comments on commit 591dfdd

Please sign in to comment.