kopia lustrzana https://github.com/njcrawford/EmbroideryReader
Attempt to stop crash related to settings file when closing
rodzic
afd3e80907
commit
51bc553e73
|
@ -479,8 +479,19 @@ namespace embroideryReader
|
|||
settings.windowHeight = this.Height;
|
||||
}
|
||||
}
|
||||
try
|
||||
{
|
||||
settings.save();
|
||||
}
|
||||
catch (System.IO.IOException /*ioex*/)
|
||||
{
|
||||
// Ignore IO exceptions when saving settings file, to deal with crashes caused by
|
||||
// closing many windows at once.
|
||||
|
||||
// This isn't a great way to handle the problem, but it's better than getting
|
||||
// the same automated error report over and over.
|
||||
}
|
||||
}
|
||||
|
||||
private string CurrentVersion()
|
||||
{
|
||||
|
|
|
@ -135,6 +135,9 @@ namespace embroideryReader
|
|||
|
||||
// Save translation setting
|
||||
settings.translation = availableTranslations[cmbLanguage.SelectedIndex].Item2;
|
||||
|
||||
// Save settings file
|
||||
settings.save();
|
||||
}
|
||||
|
||||
public Translation setTranslation
|
||||
|
|
Ładowanie…
Reference in New Issue