Make sure profile name is searched by an exact match

Fixes issue with profile selections when using
similar names
This commit is contained in:
Travis Nickles 2019-07-02 15:41:29 -05:00
parent 1c869647ab
commit 8e55e7178b

View File

@ -1333,7 +1333,7 @@ Properties.Resources.DS4Update, MessageBoxButtons.YesNo, MessageBoxIcon.Question
} }
Batteries[Index].Text = Program.rootHub.getDS4Battery(Index); Batteries[Index].Text = Program.rootHub.getDS4Battery(Index);
int profileIndex = cbs[Index].FindString(ProfilePath[Index]); int profileIndex = cbs[Index].FindStringExact(ProfilePath[Index]);
if (profileIndex >= 0) if (profileIndex >= 0)
{ {
cbs[Index].SelectedValueChanged -= Profile_Changed; cbs[Index].SelectedValueChanged -= Profile_Changed;