readermenu: move book status to info tab & minor cleanup

This commit is contained in:
Qingping Hou
2016-03-06 21:52:53 -08:00
parent a99ab5a976
commit 34e0238b6f
4 changed files with 16 additions and 21 deletions

View File

@@ -171,12 +171,6 @@ function ReaderUI:init()
view = self.view,
ui = self
}, true)
-- history view
self:registerModule("history", FileManagerHistory:new{
dialog = self.dialog,
menu = self.menu,
ui = self,
})
-- frontlight controller
if Device:hasFrontlight() then
self:registerModule("frontlight", ReaderFrontLight:new{
@@ -297,13 +291,17 @@ function ReaderUI:init()
view = self.view,
ui = self
})
-- book status
self:registerModule("status", ReaderStatus:new{
ui = self,
document = self.document,
view = self.view,
})
-- history view
self:registerModule("history", FileManagerHistory:new{
dialog = self.dialog,
ui = self,
})
-- koreader plugins
for _,plugin_module in ipairs(PluginLoader:loadPlugins()) do
DEBUG("Loaded plugin", plugin_module.name, "at", plugin_module.path)