Browse Source

Fixed bug that caused ILSpy to needlessly save the settings on startup.

pull/320/merge
Daniel Grunwald 14 years ago
parent
commit
2e9f50c437
  1. 2
      ILSpy/AboutPage.cs

2
ILSpy/AboutPage.cs

@ -221,7 +221,7 @@ namespace ICSharpCode.ILSpy @@ -221,7 +221,7 @@ namespace ICSharpCode.ILSpy
XElement s = spySettings["UpdateSettings"];
this.automaticUpdateCheckEnabled = (bool?)s.Element("AutomaticUpdateCheckEnabled") ?? true;
try {
this.LastSuccessfulUpdateCheck = (DateTime?)s.Element("LastSuccessfulUpdateCheck");
this.lastSuccessfulUpdateCheck = (DateTime?)s.Element("LastSuccessfulUpdateCheck");
} catch (FormatException) {
// avoid crashing on settings files invalid due to
// https://github.com/icsharpcode/ILSpy/issues/closed/#issue/2

Loading…
Cancel
Save