From: H.G. Muller Date: Sun, 26 Feb 2012 22:06:33 +0000 (+0100) Subject: Suppress recent-engines menu items in ICS mode X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=e299389ce88fdc7cf7fbe853a051496771dbabb6;p=xboard.git Suppress recent-engines menu items in ICS mode --- diff --git a/winboard/winboard.c b/winboard/winboard.c index 8d8b70e..9cdd4b9 100644 --- a/winboard/winboard.c +++ b/winboard/winboard.c @@ -497,6 +497,7 @@ TranslateMenus(int addLanguage) void RecentEngineMenu (char *s) { + if(appData.icsActive) return; if(appData.recentEngines > 0 && *s) { // feature is on, and list non-empty HMENU mainMenu = GetMenu(hwndMain); HMENU subMenu = GetSubMenu(mainMenu, 5); // Engine menu diff --git a/xboard.c b/xboard.c index 024ea90..8e5c49b 100644 --- a/xboard.c +++ b/xboard.c @@ -3917,7 +3917,7 @@ AppendEnginesToMenu (Widget menu, char *list) Arg args[16]; char *p; - if(appData.recentEngines <= 0) return; + if(appData.icsActive || appData.recentEngines <= 0) return; recentEngines = strdup(list); j = 0; XtSetArg(args[j], XtNleftMargin, 20); j++;