From 8d4cb0567f354d55810117ac17e3573550ca8cb1 Mon Sep 17 00:00:00 2001 From: morkt Date: Thu, 11 Jan 2018 18:41:44 +0400 Subject: [PATCH] (App): upgrader settings of GameRes assembly. --- GUI/App.xaml.cs | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/GUI/App.xaml.cs b/GUI/App.xaml.cs index edb9447f..56a9024d 100644 --- a/GUI/App.xaml.cs +++ b/GUI/App.xaml.cs @@ -121,19 +121,20 @@ namespace GARbro.GUI void UpgradeSettings () { - if (Settings.Default.UpgradeRequired) + try { - try + FormatCatalog.Instance.UpgradeSettings(); + if (Settings.Default.UpgradeRequired) { Settings.Default.Upgrade(); Settings.Default.UpgradeRequired = false; Settings.Default.Save(); } - catch (System.Exception X) - { - Trace.WriteLine (string.Format ("Settings upgrade failed: {0}", X.Message), "[GARbro.GUI.App]"); - } - } + } + catch (System.Exception X) + { + Trace.WriteLine (string.Format ("Settings upgrade failed: {0}", X.Message), "[GARbro.GUI.App]"); + } // do not restore in minimized state if (Settings.Default.winState == System.Windows.WindowState.Minimized)