mirror of
https://github.com/QL-Win/QuickLook.git
synced 2025-12-25 02:00:12 +08:00
handle corrupted configuration when upgrading.
This commit is contained in:
@@ -108,7 +108,14 @@ namespace QuickLook
|
||||
|
||||
Updater.CollectAndShowReleaseNotes();
|
||||
|
||||
Settings.Default.Upgrade();
|
||||
try
|
||||
{
|
||||
Settings.Default.Upgrade();
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
TrayIconManager.ShowNotification("", "Configuration file is currupted and has been removed.", true);
|
||||
}
|
||||
Settings.Default.Upgraded = false;
|
||||
Settings.Default.Save();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user