mirror of
https://github.com/crskycode/GARbro.git
synced 2024-11-30 17:05:37 +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 ()
|
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)
|
||||||
|
Loading…
Reference in New Issue
Block a user