add filemanager icon in reader menu

now we can access the filemanager in all launcher configurations
This commit is contained in:
chrox
2014-09-03 11:13:46 +08:00
parent bb7c7be70a
commit c74c258fc7
6 changed files with 25 additions and 12 deletions

View File

@@ -38,13 +38,22 @@ function ReaderMenu:init()
plugins = {
icon = "resources/icons/appbar.tools.png",
},
filemanager = {
icon = "resources/icons/appbar.cabinet.files.png",
callback = function()
self.ui:onClose()
UIManager:quit()
local lastdir = G_reader_settings:readSetting("lastdir")
showHomePage(lastdir)
end,
},
home = {
icon = "resources/icons/appbar.home.png",
callback = function()
self.ui:handleEvent(Event:new("RestoreScreenMode",
G_reader_settings:readSetting("screen_mode") or "portrait"))
UIManager:close(self.menu_container)
self.ui:onClose()
UIManager:quit()
end,
},
}
@@ -150,6 +159,7 @@ function ReaderMenu:onShowReaderMenu()
self.tab_item_table.setting,
self.tab_item_table.info,
self.tab_item_table.plugins,
self.tab_item_table.filemanager,
self.tab_item_table.home,
},
show_parent = menu_container,