UIManager: Minor code cleanup (#9641)

* Remove a check made redundant by #9617
* Bump base (https://github.com/koreader/koreader-base/pull/1538)
This commit is contained in:
NiLuJe
2022-10-16 01:43:47 +02:00
committed by GitHub
parent 741562e84c
commit 23c410344b
2 changed files with 1 additions and 6 deletions

2
base

Submodule base updated: 37506f4d55...fc31b4d98b

View File

@@ -760,11 +760,6 @@ which itself will take care of propagating an event to its members.
@param event an @{ui.event.Event|Event} object
]]
function UIManager:sendEvent(event)
if not self._window_stack[1] then
-- No widgets in the stack!
return
end
local top_widget
local checked_widgets = {}
-- Toast widgets, which, by contract, must be at the top of the window stack, never stop event propagation.