From 06dcb991e823e013b0b4708f782396a4dfbde4b3 Mon Sep 17 00:00:00 2001 From: Peak <48360696+PeakKS@users.noreply.github.com> Date: Sun, 18 Feb 2024 05:46:48 -0500 Subject: [PATCH] Allow topmenu config file to sort with subcategories (#1757) --- extensions/topmenus/TopMenu.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/extensions/topmenus/TopMenu.cpp b/extensions/topmenus/TopMenu.cpp index 28a17391..db5ead6f 100644 --- a/extensions/topmenus/TopMenu.cpp +++ b/extensions/topmenus/TopMenu.cpp @@ -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;