diff --git a/PKHeX.WinForms/App.config b/PKHeX.WinForms/App.config index 26a5e64d1..1a3202a59 100644 --- a/PKHeX.WinForms/App.config +++ b/PKHeX.WinForms/App.config @@ -58,6 +58,9 @@ GP + + True + diff --git a/PKHeX.WinForms/MainWindow/Main.cs b/PKHeX.WinForms/MainWindow/Main.cs index 5c2dd70e7..295e59511 100644 --- a/PKHeX.WinForms/MainWindow/Main.cs +++ b/PKHeX.WinForms/MainWindow/Main.cs @@ -192,7 +192,8 @@ namespace PKHeX.WinForms try #endif { - if (!DetectSaveFile(out string path) && path != null) + string path = null; + if (Settings.Default.DetectSaveOnStartup && !DetectSaveFile(out path) && path != null) WinFormsUtil.Error(path); // `path` contains the error message bool savLoaded = false; diff --git a/PKHeX.WinForms/Properties/Settings.Designer.cs b/PKHeX.WinForms/Properties/Settings.Designer.cs index ac9ad61a7..77f12a9e9 100644 --- a/PKHeX.WinForms/Properties/Settings.Designer.cs +++ b/PKHeX.WinForms/Properties/Settings.Designer.cs @@ -226,5 +226,17 @@ namespace PKHeX.WinForms.Properties { this["DefaultSaveVersion"] = value; } } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("True")] + public bool DetectSaveOnStartup { + get { + return ((bool)(this["DetectSaveOnStartup"])); + } + set { + this["DetectSaveOnStartup"] = value; + } + } } } diff --git a/PKHeX.WinForms/Properties/Settings.settings b/PKHeX.WinForms/Properties/Settings.settings index 6a0baf726..f2100618d 100644 --- a/PKHeX.WinForms/Properties/Settings.settings +++ b/PKHeX.WinForms/Properties/Settings.settings @@ -53,5 +53,8 @@ GP + + True + \ No newline at end of file