From 7121fa93e3a0f545077e88036e13677cff396a95 Mon Sep 17 00:00:00 2001 From: Shuanglei Tao Date: Thu, 14 Dec 2023 22:39:16 +0800 Subject: [PATCH] uosc menu separator support --- src/menu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/menu.c b/src/menu.c index d1c880e..1f8f170 100644 --- a/src/menu.c +++ b/src/menu.c @@ -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);