mirror of
https://github.com/cemu-project/DS4Windows.git
synced 2024-11-29 12:34:18 +01:00
Make sure to populate oldprofilepath when refreshing profiles
This commit is contained in:
parent
2d15badd0a
commit
55890cfc81
@ -741,7 +741,7 @@ Properties.Resources.DS4Update, MessageBoxButtons.YesNo, MessageBoxIcon.Question
|
|||||||
if (lBProfiles.Items.Count == 0)
|
if (lBProfiles.Items.Count == 0)
|
||||||
{
|
{
|
||||||
SaveProfile(0, "Default");
|
SaveProfile(0, "Default");
|
||||||
ProfilePath[0] = "Default";
|
ProfilePath[0] = OlderProfilePath[0] = "Default";
|
||||||
RefreshProfiles();
|
RefreshProfiles();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -759,7 +759,7 @@ Properties.Resources.DS4Update, MessageBoxButtons.YesNo, MessageBoxIcon.Question
|
|||||||
{
|
{
|
||||||
cbs[i].SelectedIndex = j;
|
cbs[i].SelectedIndex = j;
|
||||||
((ToolStripMenuItem)shortcuts[i].DropDownItems[j]).Checked = true;
|
((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());
|
shortcuts[i].Text = Properties.Resources.ContextEdit.Replace("*number*", (i + 1).ToString());
|
||||||
ebns[i].Text = Properties.Resources.EditProfile;
|
ebns[i].Text = Properties.Resources.EditProfile;
|
||||||
break;
|
break;
|
||||||
@ -777,7 +777,7 @@ Properties.Resources.DS4Update, MessageBoxButtons.YesNo, MessageBoxIcon.Question
|
|||||||
{
|
{
|
||||||
Directory.CreateDirectory(appdatapath + @"\Profiles\");
|
Directory.CreateDirectory(appdatapath + @"\Profiles\");
|
||||||
SaveProfile(0, "Default");
|
SaveProfile(0, "Default");
|
||||||
ProfilePath[0] = "Default";
|
ProfilePath[0] = OlderProfilePath[0] = "Default";
|
||||||
RefreshProfiles();
|
RefreshProfiles();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user