screen_rotation_menu_table: fix menu refreshing on check

This commit is contained in:
hius07
2025-06-27 14:03:55 +03:00
committed by GitHub
parent 000d114878
commit a707d93026

View File

@@ -14,6 +14,7 @@ local function genMenuItem(text, mode)
return Screen:getRotationMode() == mode
end,
radio = true,
on_check_closed_in_callback = true,
callback = function(touchmenu_instance)
UIManager:broadcastEvent(Event:new("SetRotationMode", mode))
touchmenu_instance:closeMenu()