From 23c410344baba77f5b1a11b492a5da26864a31fd Mon Sep 17 00:00:00 2001 From: NiLuJe Date: Sun, 16 Oct 2022 01:43:47 +0200 Subject: [PATCH] UIManager: Minor code cleanup (#9641) * Remove a check made redundant by #9617 * Bump base (https://github.com/koreader/koreader-base/pull/1538) --- base | 2 +- frontend/ui/uimanager.lua | 5 ----- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/base b/base index 37506f4d5..fc31b4d98 160000 --- a/base +++ b/base @@ -1 +1 @@ -Subproject commit 37506f4d552e9ccf2f6c0f71afe925c3ffd9abd2 +Subproject commit fc31b4d98bb267946a3080e07f1a0f8d50dfa2a3 diff --git a/frontend/ui/uimanager.lua b/frontend/ui/uimanager.lua index afd1ccb15..660d97aaa 100644 --- a/frontend/ui/uimanager.lua +++ b/frontend/ui/uimanager.lua @@ -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.