Skip to content

Commit

Permalink
Fix a potential crash of the form app
Browse files Browse the repository at this point in the history
  • Loading branch information
XanatosX committed Jun 14, 2023
1 parent bc8e154 commit 59611d8
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/XmlFormatter/Windows/MainForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,15 @@ public MainForm()

foreach (SettingPair settingPair in resourceScope.GetSettings())
{
Properties.Settings.Default[settingPair.Name] = settingPair.Value;
try
{
Properties.Settings.Default[settingPair.Name] = settingPair.Value;
}
catch (Exception)
{
// Prevent crash even if shit happens
}

}

pluginManager = new DefaultManager();
Expand Down

0 comments on commit 59611d8

Please sign in to comment.