mirror of
https://github.com/cemu-project/DS4Windows.git
synced 2025-01-11 15:59:08 +01:00
Don't run Save method if not required
This commit is contained in:
parent
78470696f8
commit
8f4035ed5a
@ -103,6 +103,7 @@ namespace DS4Windows.Forms
|
||||
{
|
||||
Global.FindConfigLocation();
|
||||
|
||||
bool firstRun = Global.firstRun;
|
||||
if (Global.firstRun)
|
||||
{
|
||||
new SaveWhere(Global.multisavespots).ShowDialog();
|
||||
@ -183,7 +184,7 @@ namespace DS4Windows.Forms
|
||||
blankControllerTab();
|
||||
|
||||
Directory.CreateDirectory(appdatapath);
|
||||
if (!Save()) //if can't write to file
|
||||
if (firstRun && !Save()) //if can't write to file
|
||||
{
|
||||
if (MessageBox.Show("Cannot write at current location\nCopy Settings to appdata?", "DS4Windows",
|
||||
MessageBoxButtons.YesNo, MessageBoxIcon.Warning) == DialogResult.Yes)
|
||||
|
Loading…
x
Reference in New Issue
Block a user