Skip to content

Commit

Permalink
Dodge the GenericName which just repeats Name content
Browse files Browse the repository at this point in the history
  • Loading branch information
Code7R committed Sep 30, 2024
1 parent ef3c600 commit 29a0ed9
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/fdomenu.cc
Original file line number Diff line number Diff line change
Expand Up @@ -622,12 +622,14 @@ struct AppEntry {
}
if (right_to_left) {
for (auto rit = extraSfx.rbegin(); rit != extraSfx.rend(); ++rit)
strm << rit->before << rit->sfx << rit->after << " ";
if (sTitle != rit->sfx)
strm << rit->before << rit->sfx << rit->after << " ";
strm << sTitle;
} else {
strm << sTitle;
for (const auto &p : extraSfx)
strm << " " << p.before << p.sfx << p.after;
if (sTitle != p.sfx)
strm << " " << p.before << p.sfx << p.after;
}
}
};
Expand Down Expand Up @@ -784,8 +786,8 @@ unordered_multimap<string, MenuNode *> MenuNode::fixup() {

unordered_multimap<string, MenuNode *> ret;

//if (no_sep_others)
// submenus.erase("Other");
// if (no_sep_others)
// submenus.erase("Other");

// descend deep and then check whether the same app has been added somewhere
// in the parent nodes, then remove it there
Expand Down

0 comments on commit 29a0ed9

Please sign in to comment.