mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
allow closing non-existent widget but throw a warning
This commit is contained in:
@@ -153,6 +153,10 @@ end
|
||||
|
||||
-- unregister a widget
|
||||
function UIManager:close(widget)
|
||||
if not widget then
|
||||
DEBUG("widget not exist to be closed")
|
||||
return
|
||||
end
|
||||
DEBUG("close widget", widget.id)
|
||||
Input.disable_double_tap = DGESDETECT_DISABLE_DOUBLE_TAP
|
||||
local dirty = false
|
||||
|
||||
Reference in New Issue
Block a user