FileManager/ReaderUI: Clarify the current instance accessor (#7658)

* FileManager/ReaderUI: Clarify the current instance accessor

Make it clearer that we actually store it in a *module/class* member, not an *instance* member.

Also, warn if there's a close/open mismatch.
This commit is contained in:
NiLuJe
2021-05-11 00:49:35 +02:00
committed by GitHub
parent 939fcf7f0e
commit de6f2e84a3
5 changed files with 65 additions and 40 deletions

View File

@@ -342,7 +342,6 @@ local function exitReader()
-- Save current rotation (or the original rotation if ScreenSaver temporarily modified it) to remember it for next startup
G_reader_settings:saveSetting("closed_rotation_mode", Device.orig_rotation_mode or Device.screen:getRotationMode())
G_reader_settings:close()
-- Close lipc handles