[fix] ReaderStatus showStatus to onShowBookStatus (#4750)

Overlooked in #4746, see https://github.com/koreader/koreader/pull/4746#issuecomment-470569106
pull/4751/head
Frans de Jonge 5 years ago committed by GitHub
parent dc829d0223
commit 52300ffb15
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -61,7 +61,7 @@ function ReaderStatus:onEndOfBook()
{ {
text = _("Book status"), text = _("Book status"),
callback = function() callback = function()
self:showStatus() self:onShowBookStatus()
UIManager:close(choose_action) UIManager:close(choose_action)
end, end,
}, },
@ -93,7 +93,7 @@ function ReaderStatus:onEndOfBook()
UIManager:show(choose_action) UIManager:show(choose_action)
elseif settings == "book_status" then elseif settings == "book_status" then
self:showStatus() self:onShowBookStatus()
elseif settings == "next_file" then elseif settings == "next_file" then
if G_reader_settings:readSetting("collate") ~= "access" then if G_reader_settings:readSetting("collate") ~= "access" then
local info = InfoMessage:new{ local info = InfoMessage:new{
@ -112,7 +112,7 @@ function ReaderStatus:onEndOfBook()
self:openFileBrowser() self:openFileBrowser()
elseif settings == "book_status_file_browser" then elseif settings == "book_status_file_browser" then
local before_show_callback = function() self:openFileBrowser() end local before_show_callback = function() self:openFileBrowser() end
self:showStatus(before_show_callback) self:onShowBookStatus(before_show_callback)
end end
end end

Loading…
Cancel
Save