mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
vocabbuilder.koplugin: always show more button, add book filtering (#9393)
Always show more button instead of delete regardless of review count per #9383. Adds book filtering per #9256 (from menu or by swiping up).
This commit is contained in:
@@ -93,10 +93,12 @@ function SortItemWidget:init()
|
||||
end
|
||||
|
||||
function SortItemWidget:onTap(_, ges)
|
||||
if self.item.checked_func and ges.pos:intersectWith(self.checkmark_widget.dimen) then
|
||||
if self.item.checked_func and ( self.show_parent.sort_disabled or ges.pos:intersectWith(self.checkmark_widget.dimen) ) then
|
||||
if self.item.callback then
|
||||
self.item:callback()
|
||||
end
|
||||
elseif self.show_parent.sort_disabled then
|
||||
return true
|
||||
elseif self.show_parent.marked == self.index then
|
||||
self.show_parent.marked = 0
|
||||
else
|
||||
@@ -123,6 +125,7 @@ local SortWidget = FocusManager:new{
|
||||
-- table of items to sort
|
||||
item_table = nil, -- mandatory (array)
|
||||
callback = nil,
|
||||
sort_disabled = false
|
||||
}
|
||||
|
||||
function SortWidget:init()
|
||||
|
||||
Reference in New Issue
Block a user