From 846b53485474211a24248c9b0d5cc4205104a772 Mon Sep 17 00:00:00 2001 From: Chris Young Date: Mon, 30 Jun 2014 22:37:05 +0100 Subject: Recreate the entire menu when the hotlist window is closed. This ensures the hotlist entries in the menu are in sync with reality, and mirrors the existing hotlist toolbar update. --- amiga/gui.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'amiga/gui.c') diff --git a/amiga/gui.c b/amiga/gui.c index 6e84e7077..543a77479 100644 --- a/amiga/gui.c +++ b/amiga/gui.c @@ -3030,7 +3030,10 @@ void ami_gui_hotlist_toolbar_update(struct gui_window_2 *gwin) } } -void ami_gui_hotlist_toolbar_update_all(void) +/** + * Update hotlist toolbar and recreate the menu for all windows + */ +void ami_gui_hotlist_update_all(void) { struct nsObject *node; struct nsObject *nnode; @@ -3047,6 +3050,7 @@ void ami_gui_hotlist_toolbar_update_all(void) if(node->Type == AMINS_WINDOW) { ami_gui_hotlist_toolbar_update(gwin); + ami_menu_refresh(gwin); } } while(node = nnode); } -- cgit v1.2.3