diff options
Diffstat (limited to 'src/mir_app')
-rw-r--r-- | src/mir_app/src/menu_utils.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mir_app/src/menu_utils.cpp b/src/mir_app/src/menu_utils.cpp index 17fdcaea62..6ef5d6d9cf 100644 --- a/src/mir_app/src/menu_utils.cpp +++ b/src/mir_app/src/menu_utils.cpp @@ -336,8 +336,10 @@ MIR_APP_DLL(int) Menu_ModifyItem(HGENMENU hMenuItem, const TCHAR *ptszName, HAND replaceStrT(pimi->mi.name.t, ptszName);
if (iFlags != -1) {
- // we allow to set only first 3 bits
+ Menu_SetItemFlags(hMenuItem, true, iFlags);
int oldflags = (pimi->mi.flags & 0xFFFFFFF8);
+ if (!pimi->customVisible)
+ oldflags |= CMIF_HIDDEN;
pimi->mi.flags = (iFlags & 0x07) | oldflags;
}
|