Allow topmenu config file to sort with subcategories (#1757)

This commit is contained in:
Peak 2024-02-18 05:46:48 -05:00 committed by GitHub
parent e262064fd8
commit 06dcb991e8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1179,6 +1179,11 @@ SMCResult TopMenu::ReadSMC_NewSection(const SMCStates *states, const char *name)
}
}
}
else if (current_parse_state == PARSE_STATE_CATEGORY)
{
cur_cat->commands.push_back(m_Config.strings.AddString(name));
ignore_parse_level++;
}
else
{
ignore_parse_level = 1;