Hilariously simpler fix for #6616 (#6650)

* Hilariously simpler fix for #6616

Reverts #6648 for a much, much simpler solution, that will actually
cover every possible situation automagically.
This commit is contained in:
NiLuJe
2020-09-13 19:00:03 +02:00
committed by GitHub
parent e0546d0fc8
commit 592e4f42df
5 changed files with 15 additions and 58 deletions

View File

@@ -37,7 +37,7 @@ function AutoTurn:_schedule(settings_id)
local delay = self.last_action_sec + self.autoturn_sec - os.time()
if delay <= 0 then
if UIManager:getTopWidget() == "ReaderUI"then
if UIManager:getTopWidget() == "ReaderUI" then
logger.dbg("AutoTurn: go to next page")
self.ui:handleEvent(Event:new("GotoViewRel", self.autoturn_distance))
end