From 1749ab7227bda347d167569e536382027f04de88 Mon Sep 17 00:00:00 2001 From: robert00s Date: Tue, 4 Apr 2017 18:33:35 +0200 Subject: [PATCH] Fix 2716 --- reader.lua | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/reader.lua b/reader.lua index 8a68e2322..0e8c67cca 100755 --- a/reader.lua +++ b/reader.lua @@ -122,12 +122,13 @@ if fontmap ~= nil then end -- last file local last_file = G_reader_settings:readSetting("lastfile") -if last_file and lfs.attributes(last_file, "mode") ~= "file" then +-- load last opened file +local open_last = G_reader_settings:readSetting("open_last") + +if open_last and last_file and lfs.attributes(last_file, "mode") ~= "file" then UIManager:show(retryLastFile()) last_file = nil end --- load last opened file -local open_last = G_reader_settings:readSetting("open_last") -- night mode if G_reader_settings:readSetting("night_mode") then Device.screen:toggleNightMode()