From 8e55e7178b404acbf20be42db8940546f823a5b0 Mon Sep 17 00:00:00 2001 From: Travis Nickles Date: Tue, 2 Jul 2019 15:41:29 -0500 Subject: [PATCH] Make sure profile name is searched by an exact match Fixes issue with profile selections when using similar names --- DS4Windows/DS4Forms/DS4Form.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DS4Windows/DS4Forms/DS4Form.cs b/DS4Windows/DS4Forms/DS4Form.cs index abbc0b0..13eee39 100644 --- a/DS4Windows/DS4Forms/DS4Form.cs +++ b/DS4Windows/DS4Forms/DS4Form.cs @@ -1333,7 +1333,7 @@ Properties.Resources.DS4Update, MessageBoxButtons.YesNo, MessageBoxIcon.Question } Batteries[Index].Text = Program.rootHub.getDS4Battery(Index); - int profileIndex = cbs[Index].FindString(ProfilePath[Index]); + int profileIndex = cbs[Index].FindStringExact(ProfilePath[Index]); if (profileIndex >= 0) { cbs[Index].SelectedValueChanged -= Profile_Changed;