fix: app crashes when close a repository on read-only drive (#1080)

Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
leo 2025-03-11 09:36:13 +08:00
parent 5f2bd8ad94
commit 54d49a9eda
No known key found for this signature in database

View file

@ -518,7 +518,7 @@ namespace SourceGit.ViewModels
{
File.WriteAllText(Path.Combine(_gitDir, "sourcegit.settings"), settingsSerialized);
}
catch (DirectoryNotFoundException)
catch
{
// Ignore
}