Skip to content

Commit

Permalink
fix plugin categories submenues
Browse files Browse the repository at this point in the history
Allow submenues of plugin categories that are not built in.
  • Loading branch information
Ash-86 committed Jan 14, 2025
1 parent 1000457 commit b55d00e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/appshell/view/appmenumodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -761,7 +761,10 @@ MenuItemList AppMenuModel::makePluginsItems()
MenuItemList pluginsWithoutCategories;
for (const Manifest& m : enabledExtensions) {
std::string categoryStr = m.category.toStdString();
if (muse::contains(categories, categoryStr)) {
if (!categoryStr.empty()) {
if (!muse::contains(categories, categoryStr)) {
categories[categoryStr] = TranslatableString("extensions", m.category);
}
MenuItemList& items = categoriesMap[categoryStr];
addMenuItems(items, m);
} else {
Expand Down

0 comments on commit b55d00e

Please sign in to comment.