[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
This commit is contained in:
onde2rock
2018-04-21 22:02:38 +02:00
committed by Frans de Jonge
parent 3cc9313cc6
commit 941df475b6

View File

@@ -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