trying to clear the context menu, but that does not work
This commit is contained in:
+5
-1
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user