Support DeleteTrayMenuByID

This commit is contained in:
Lea Anthony
2021-02-24 21:49:55 +11:00
parent 13939d3d6b
commit 53db687a26
10 changed files with 56 additions and 2 deletions

View File

@@ -1047,6 +1047,12 @@ void SetTrayMenu(struct Application *app, const char* trayMenuJSON) {
);
}
void DeleteTrayMenuByID(struct Application *app, const char *id) {
ON_MAIN_THREAD(
DeleteTrayMenuInStore(app->trayMenuStore, id);
);
}
void UpdateTrayMenuLabel(struct Application* app, const char* JSON) {
// Guard against calling during shutdown
if( app->shuttingDown ) return;