Skip to content

Commit

Permalink
don't show 'manga view' menu item for non-comic book files (fixes #1511)
Browse files Browse the repository at this point in the history
  • Loading branch information
kjk committed Mar 21, 2020
1 parent 659efb0 commit 1df8d88
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Menu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 1df8d88

Please sign in to comment.