(App): upgrader settings of GameRes assembly.

This commit is contained in:
morkt 2018-01-11 18:41:44 +04:00
parent d8389d2289
commit 8d4cb0567f

View File

@ -120,20 +120,21 @@ namespace GARbro.GUI
} }
void UpgradeSettings () void UpgradeSettings ()
{
if (Settings.Default.UpgradeRequired)
{ {
try try
{
FormatCatalog.Instance.UpgradeSettings();
if (Settings.Default.UpgradeRequired)
{ {
Settings.Default.Upgrade(); Settings.Default.Upgrade();
Settings.Default.UpgradeRequired = false; Settings.Default.UpgradeRequired = false;
Settings.Default.Save(); Settings.Default.Save();
} }
}
catch (System.Exception X) catch (System.Exception X)
{ {
Trace.WriteLine (string.Format ("Settings upgrade failed: {0}", X.Message), "[GARbro.GUI.App]"); Trace.WriteLine (string.Format ("Settings upgrade failed: {0}", X.Message), "[GARbro.GUI.App]");
} }
}
// do not restore in minimized state // do not restore in minimized state
if (Settings.Default.winState == System.Windows.WindowState.Minimized) if (Settings.Default.winState == System.Windows.WindowState.Minimized)