Startup: Instantiate FileManagerHistory properly

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

Fix #7617
This commit is contained in:
NiLuJe
2021-04-29 19:39:59 +02:00
parent 9f835156d1
commit ba0c18ccd4

View File

@@ -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")