mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
@@ -134,6 +134,18 @@ function FileManagerHistory:onShowHist()
|
||||
onMenuHold = self.onMenuHold,
|
||||
_manager = self,
|
||||
}
|
||||
|
||||
-- Handle rotation events
|
||||
local this = self
|
||||
function self.hist_menu:onSetRotationMode(rotation)
|
||||
if rotation ~= nil and rotation ~= Screen:getRotationMode() then
|
||||
UIManager:close(this.hist_menu)
|
||||
Screen:setRotationMode(rotation)
|
||||
this:onShowHist()
|
||||
end
|
||||
return true
|
||||
end
|
||||
|
||||
self:updateItemTable()
|
||||
self.hist_menu.close_callback = function()
|
||||
-- Close it at next tick so it stays displayed
|
||||
|
||||
@@ -300,7 +300,7 @@ else
|
||||
if start_with == "history" then
|
||||
local FileManagerHistory = require("apps/filemanager/filemanagerhistory")
|
||||
UIManager:nextTick(function()
|
||||
FileManagerHistory:onShowHist(last_file)
|
||||
FileManagerHistory:onShowHist()
|
||||
end)
|
||||
elseif start_with == "favorites" then
|
||||
local FileManagerCollection = require("apps/filemanager/filemanagercollection")
|
||||
|
||||
Reference in New Issue
Block a user