From 03d4c51c476fd9f19156dc1a97ce67db0fa6d1f6 Mon Sep 17 00:00:00 2001 From: YoshiRulz Date: Wed, 27 Mar 2019 14:40:55 +1000 Subject: [PATCH] Replace .Where(pred).Count() with .Count(pred) --- BizHawk.Client.EmuHawk/tools/TAStudio/TAStudio.MenuItems.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BizHawk.Client.EmuHawk/tools/TAStudio/TAStudio.MenuItems.cs b/BizHawk.Client.EmuHawk/tools/TAStudio/TAStudio.MenuItems.cs index 79b01df7fb..2e13014d4a 100644 --- a/BizHawk.Client.EmuHawk/tools/TAStudio/TAStudio.MenuItems.cs +++ b/BizHawk.Client.EmuHawk/tools/TAStudio/TAStudio.MenuItems.cs @@ -1241,7 +1241,7 @@ namespace BizHawk.Client.EmuHawk int workingHeight = Screen.FromControl(this).WorkingArea.Height; int rowHeight = ColumnsSubMenu.Height + 4; int maxRows = workingHeight / rowHeight; - int keyCount = columns.Where(c => c.Name.StartsWith("Key ")).Count(); + int keyCount = columns.Count(c => c.Name.StartsWith("Key ")); int keysMenusCount = (int)Math.Ceiling((double)keyCount / maxRows); ToolStripMenuItem[] keysMenus = new ToolStripMenuItem[keysMenusCount];