From b8640956d48af03f2f7f6c07e66958fa825a4972 Mon Sep 17 00:00:00 2001 From: Chris Young Date: Sun, 15 Jan 2017 16:13:32 +0000 Subject: Ignore the other check toggle stuff with menuclass The one thing we are toggling is actioned immediately when potentially changing the state in the prefs window --- frontends/amiga/gui_menu.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'frontends/amiga/gui_menu.c') diff --git a/frontends/amiga/gui_menu.c b/frontends/amiga/gui_menu.c index 3f053a571..6b33194cb 100644 --- a/frontends/amiga/gui_menu.c +++ b/frontends/amiga/gui_menu.c @@ -671,7 +671,7 @@ void ami_gui_menu_set_disabled(struct Window *win, struct Menu *menu, int item, void ami_gui_menu_update_checked(struct gui_window_2 *gwin) { if(LIB_IS_AT_LEAST((struct Library *)IntuitionBase, 54, 6)) { - //needs re-writing for MenuClass + /* Irrelevant when using MenuClass */ return; } @@ -780,11 +780,21 @@ void ami_gui_menu_update_disabled(struct gui_window *g, struct hlcache_handle *c void ami_gui_menu_set_check_toggled(void) { + if(LIB_IS_AT_LEAST((struct Library *)IntuitionBase, 54, 6)) { + /* Irrelevant when using MenuClass */ + return; + } + ami_menu_check_toggled = true; } bool ami_gui_menu_get_check_toggled(void) { + if(LIB_IS_AT_LEAST((struct Library *)IntuitionBase, 54, 6)) { + /* Irrelevant when using MenuClass */ + return false; + } + bool check_toggled = ami_menu_check_toggled; ami_menu_check_toggled = false; return check_toggled; -- cgit v1.2.3