From ba0c18ccd4f782567173d4d1c10789f369279704 Mon Sep 17 00:00:00 2001 From: NiLuJe Date: Thu, 29 Apr 2021 19:39:59 +0200 Subject: [PATCH] Startup: Instantiate FileManagerHistory properly Ensures rotation doesn't crash, and actually rotates the FM, too. Fix #7617 --- reader.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/reader.lua b/reader.lua index 88b2fe225..f317f14c3 100755 --- a/reader.lua +++ b/reader.lua @@ -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")