mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
add filemanager icon in reader menu
now we can access the filemanager in all launcher configurations
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user