From 8f4035ed5adccd603e865ef4834ec6ade993a6de Mon Sep 17 00:00:00 2001 From: Travis Nickles Date: Sat, 28 Sep 2019 20:37:42 -0500 Subject: [PATCH] Don't run Save method if not required --- DS4Windows/DS4Forms/DS4Form.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/DS4Windows/DS4Forms/DS4Form.cs b/DS4Windows/DS4Forms/DS4Form.cs index c375711..350c8a0 100644 --- a/DS4Windows/DS4Forms/DS4Form.cs +++ b/DS4Windows/DS4Forms/DS4Form.cs @@ -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)