mirror of
https://github.com/crskycode/GARbro.git
synced 2024-11-26 23:24:00 +08:00
(App): upgrader settings of GameRes assembly.
This commit is contained in:
parent
d8389d2289
commit
8d4cb0567f
@ -120,20 +120,21 @@ namespace GARbro.GUI
|
||||
}
|
||||
|
||||
void UpgradeSettings ()
|
||||
{
|
||||
if (Settings.Default.UpgradeRequired)
|
||||
{
|
||||
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]");
|
||||
}
|
||||
}
|
||||
|
||||
// do not restore in minimized state
|
||||
if (Settings.Default.winState == System.Windows.WindowState.Minimized)
|
||||
|
Loading…
Reference in New Issue
Block a user