From 55890cfc81e1f225f1e6939b38c80cc23801334e Mon Sep 17 00:00:00 2001 From: Travis Nickles Date: Tue, 20 Feb 2018 00:05:52 -0600 Subject: [PATCH] Make sure to populate oldprofilepath when refreshing profiles --- DS4Windows/DS4Forms/DS4Form.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/DS4Windows/DS4Forms/DS4Form.cs b/DS4Windows/DS4Forms/DS4Form.cs index 56e8d28..d3ff67d 100644 --- a/DS4Windows/DS4Forms/DS4Form.cs +++ b/DS4Windows/DS4Forms/DS4Form.cs @@ -741,7 +741,7 @@ Properties.Resources.DS4Update, MessageBoxButtons.YesNo, MessageBoxIcon.Question if (lBProfiles.Items.Count == 0) { SaveProfile(0, "Default"); - ProfilePath[0] = "Default"; + ProfilePath[0] = OlderProfilePath[0] = "Default"; RefreshProfiles(); return; } @@ -759,7 +759,7 @@ Properties.Resources.DS4Update, MessageBoxButtons.YesNo, MessageBoxIcon.Question { cbs[i].SelectedIndex = j; ((ToolStripMenuItem)shortcuts[i].DropDownItems[j]).Checked = true; - ProfilePath[i] = cbs[i].Text; + ProfilePath[i] = OlderProfilePath[i] = cbs[i].Text; shortcuts[i].Text = Properties.Resources.ContextEdit.Replace("*number*", (i + 1).ToString()); ebns[i].Text = Properties.Resources.EditProfile; break; @@ -777,7 +777,7 @@ Properties.Resources.DS4Update, MessageBoxButtons.YesNo, MessageBoxIcon.Question { Directory.CreateDirectory(appdatapath + @"\Profiles\"); SaveProfile(0, "Default"); - ProfilePath[0] = "Default"; + ProfilePath[0] = OlderProfilePath[0] = "Default"; RefreshProfiles(); return; }