Skip to content

Commit

Permalink
uosc menu separator support
Browse files Browse the repository at this point in the history
  • Loading branch information
tsl0922 committed Dec 14, 2023
1 parent 3b3b7bf commit 7121fa9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/menu.c
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ static void insert_menu(void *talloc_ctx, HMENU hmenu, bstr key, bstr cmd,
mii.wID = id++;

if (rest.len == 0) {
if (bstr_equals0(name, "-")) {
if (bstr_equals0(name, "-") || bstr_startswith0(name, "---")) {
mii.fType = MFT_SEPARATOR;
} else {
struct item_data *data = talloc_ptrtype(talloc_ctx, data);
Expand Down

0 comments on commit 7121fa9

Please sign in to comment.