Dispatcher: update action name or value (#13831)

This commit is contained in:
hius07
2025-05-22 17:57:36 +03:00
committed by GitHub
parent 0eff9ede4d
commit 178bb823f0
6 changed files with 130 additions and 50 deletions

View File

@@ -1955,6 +1955,8 @@ function ReaderFooter:genPresetMenuItemTable()
choice1_text = _("Delete"),
choice1_callback = function()
footer_presets[preset_name] = nil
UIManager:broadcastEvent(Event:new("DispatcherActionValueChanged",
{ name = "load_footer_preset", old_value = preset_name, new_value = nil }))
touchmenu_instance.item_table = self:genPresetMenuItemTable()
touchmenu_instance:updateItems()
end,