From 1df8d88bed54d39b8e90d57e25c770f165bc2e12 Mon Sep 17 00:00:00 2001 From: Krzysztof Kowalczyk Date: Fri, 20 Mar 2020 21:37:14 -0700 Subject: [PATCH] don't show 'manga view' menu item for non-comic book files (fixes #1511) --- src/Menu.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Menu.cpp b/src/Menu.cpp index 3bda2e304f84..e0ad844fe0ff 100644 --- a/src/Menu.cpp +++ b/src/Menu.cpp @@ -286,6 +286,9 @@ HMENU BuildMenuFromMenuDef(MenuDef menuDefs[], HMENU menu, int flagFilter) { continue; } } + if (md.flags & flagFilter) { + continue; + } if (!HasPermission(md.flags >> PERM_FLAG_OFFSET)) { continue;