[Menusorter] Ignore warning for the plus_menu. (#3903)

The plus_menu break the assumption of the menusorter about a tab beeing
always present.
See : https://github.com/koreader/koreader/pull/3844#issuecomment-383092219
pull/3907/head
onde2rock 6 years ago committed by Frans de Jonge
parent 3cc9313cc6
commit 941df475b6

@ -98,7 +98,9 @@ function MenuSorter:sort(item_table, order)
i = i + 1
end
else
if order_id ~= "KOMenu:disabled" then
if order_id ~= "KOMenu:disabled" and order_id ~="plus_menu" then
--"plus_menu" break an assumption of the menu_sorter, but it's ok, so ignore it.
--See : https://github.com/koreader/koreader/pull/3844#issuecomment-383092219
logger.warn("menu id not found:", order_id)
end
end

Loading…
Cancel
Save