mirror of
https://github.com/crskycode/GARbro.git
synced 2024-11-23 05:35:34 +08:00
(App): upgrader settings of GameRes assembly.
This commit is contained in:
parent
d8389d2289
commit
8d4cb0567f
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user