kopia lustrzana https://github.com/njcrawford/EmbroideryReader
Attempt to stop crash related to settings file when closing
rodzic
afd3e80907
commit
51bc553e73
|
@ -479,7 +479,18 @@ namespace embroideryReader
|
||||||
settings.windowHeight = this.Height;
|
settings.windowHeight = this.Height;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
settings.save();
|
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()
|
private string CurrentVersion()
|
||||||
|
|
|
@ -135,6 +135,9 @@ namespace embroideryReader
|
||||||
|
|
||||||
// Save translation setting
|
// Save translation setting
|
||||||
settings.translation = availableTranslations[cmbLanguage.SelectedIndex].Item2;
|
settings.translation = availableTranslations[cmbLanguage.SelectedIndex].Item2;
|
||||||
|
|
||||||
|
// Save settings file
|
||||||
|
settings.save();
|
||||||
}
|
}
|
||||||
|
|
||||||
public Translation setTranslation
|
public Translation setTranslation
|
||||||
|
|
Ładowanie…
Reference in New Issue