mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
rename ReaderMenu:addToMainMenuCallback to registerToMainMenu
since we are actully inserting widgets, not callbacks
This commit is contained in:
@@ -67,6 +67,8 @@ function ReaderUI:init()
|
||||
view = self[1],
|
||||
ui = self
|
||||
}
|
||||
self.menu = self[4] -- hold reference to menu widget
|
||||
|
||||
if self.document.info.has_pages then
|
||||
-- for page specific controller
|
||||
|
||||
@@ -126,9 +128,10 @@ function ReaderUI:onClose()
|
||||
DEBUG("closing reader")
|
||||
self:handleEvent(Event:new("CloseDocument"))
|
||||
self.doc_settings:flush()
|
||||
if self.document then
|
||||
if self.document ~= nil then
|
||||
self.document:close()
|
||||
self.document = false
|
||||
self.document = nil
|
||||
self.start_pos = nil
|
||||
end
|
||||
UIManager:close(self.dialog)
|
||||
return true
|
||||
|
||||
Reference in New Issue
Block a user