mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
Exit menu: restore long-press to exit directly (#10000)
Unwillingly removed by 8ef426d79.
This commit is contained in:
@@ -7,6 +7,9 @@ local exit_settings = {}
|
||||
|
||||
exit_settings.exit_menu = {
|
||||
text = _("Exit"),
|
||||
hold_callback = function()
|
||||
UIManager:broadcastEvent(Event:new("Exit"))
|
||||
end,
|
||||
-- submenu entries will be appended by xyz_menu_order_lua
|
||||
}
|
||||
exit_settings.exit = {
|
||||
|
||||
Reference in New Issue
Block a user