mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
return to caller when there is no window to show in UIManager
This commit is contained in:
@@ -154,9 +154,10 @@ function UIManager:run()
|
||||
--DEBUG("dirty stack", self._dirty)
|
||||
--DEBUG("---------------------------------------------------")
|
||||
|
||||
-- stop when we have no window to show (bug)
|
||||
-- stop when we have no window to show
|
||||
if #self._window_stack == 0 then
|
||||
error("no dialog left to show, would loop endlessly")
|
||||
DEBUG("no dialog left to show, would loop endlessly")
|
||||
return nil
|
||||
end
|
||||
|
||||
-- repaint dirty widgets
|
||||
|
||||
Reference in New Issue
Block a user