trying to clear the context menu, but that does not work

This commit is contained in:
2026-04-30 11:53:08 +02:00
parent be980dbffd
commit b53597396c
5 changed files with 42 additions and 6 deletions
+5 -1
View File
@@ -966,6 +966,10 @@ result_t rkt_webview_tray_show_message(rktwebview_t tray, const char *title, con
result_t rkt_webview_tray_set_menu(rktwebview_t tray, const char *menu_json)
{
CMDRES(CMD_TRAY_SET_MENU, tray, "menu", menu_json)
if (menu_json == nullptr) {
CMDRES0(CMD_TRAY_CLEAR_MENU, tray)
} else {
CMDRES(CMD_TRAY_SET_MENU, tray, "menu_json", menu_json)
}
}