mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
[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:
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
|
||||
|
||||
Reference in New Issue
Block a user