[UX] Gesture manager: add action - book status (#4746)
Marking a document as "finished" is important for Wallabag (see, among others, #4737, #4271). Also it's an obvious missing action. Default to left, up. That keeps with the fullscreen dialog gestures generally go up. Also it was still unassigned. * Remove separator on last item, see https://github.com/koreader/koreader/pull/4737#pullrequestreview-210948520
This commit is contained in:
1 parent
5992bb6401
commit
dc829d0223
2 files changed
+10
-4
No files matched your search
@@ -31,7 +31,7 @@ function ReaderStatus:addToMainMenu(menu_items)
|
||||
menu_items.book_status = {
|
||||
text = _("Book status"),
|
||||
callback = function()
|
||||
self:showStatus()
|
||||
self:onShowBookStatus()
|
||||
end,
|
||||
}
|
||||
end
|
||||
@@ -141,7 +141,7 @@ function ReaderStatus:openNextFile(next_file)
|
||||
end
|
||||
end
|
||||
|
||||
function ReaderStatus:showStatus(before_show_callback)
|
||||
function ReaderStatus:onShowBookStatus(before_show_callback)
|
||||
local status_page = BookStatusWidget:new {
|
||||
thumbnail = self.document:getCoverPageImage(),
|
||||
props = self.document:getProps(),
|
||||
@@ -154,6 +154,7 @@ function ReaderStatus:showStatus(before_show_callback)
|
||||
end
|
||||
status_page.dithered = true
|
||||
UIManager:show(status_page, "full")
|
||||
return true
|
||||
end
|
||||
|
||||
function ReaderStatus:onReadSettings(config)
|
||||
|
||||
Reference in new issue
Block a user