From e299389ce88fdc7cf7fbe853a051496771dbabb6 Mon Sep 17 00:00:00 2001 From: H.G. Muller Date: Sun, 26 Feb 2012 23:06:33 +0100 Subject: [PATCH] Suppress recent-engines menu items in ICS mode --- winboard/winboard.c | 1 + xboard.c | 2 +- 2 files changed, 2 insertions(+), 1 deletions(-) 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++; -- 1.7.0.4