Startup: Instantiate FileManagerHistory properly

Ensures rotation doesn't crash, and actually rotates the FM, too.

Fix #7617
reviewable/pr7623/r1
NiLuJe 3 years ago
parent 9f835156d1
commit ba0c18ccd4

@ -299,7 +299,9 @@ else
if start_with == "history" then
local FileManagerHistory = require("apps/filemanager/filemanagerhistory")
UIManager:nextTick(function()
FileManagerHistory:onShowHist()
FileManagerHistory:new{
ui = FileManager.instance,
}:onShowHist()
end)
elseif start_with == "favorites" then
local FileManagerCollection = require("apps/filemanager/filemanagercollection")

Loading…
Cancel
Save