UIManager: Minor code cleanup (#9641)

* Remove a check made redundant by #9617
* Bump base (https://github.com/koreader/koreader-base/pull/1538)
reviewable/pr9647/r1
NiLuJe 2 years ago committed by GitHub
parent 741562e84c
commit 23c410344b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1 +1 @@
Subproject commit 37506f4d552e9ccf2f6c0f71afe925c3ffd9abd2
Subproject commit fc31b4d98bb267946a3080e07f1a0f8d50dfa2a3

@ -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.

Loading…
Cancel
Save