[feat, plugin] Add AutoTurn (#5295)

Fixes <https://github.com/koreader/koreader/issues/3019>.
This commit is contained in:
Frans de Jonge
2019-09-01 21:30:19 +02:00
committed by GitHub
parent b038fa3046
commit 4cdc3ab99b
6 changed files with 204 additions and 0 deletions

View File

@@ -621,6 +621,11 @@ function UIManager:getRefreshRate(rate)
return self.FULL_REFRESH_COUNT
end
--- Get top widget.
function UIManager:getTopWidget()
return ((self._window_stack[#self._window_stack] or {}).widget or {}).name
end
--- Signals to quit.
function UIManager:quit()
if not self._running then return end