Exit menu: restore long-press to exit directly (#10000)

Unwillingly removed by 8ef426d79.
This commit is contained in:
poire-z
2023-01-07 09:39:55 +01:00
committed by GitHub
parent d5a4ac14e1
commit abbcd4ddbe

View File

@@ -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 = {