mirror of
https://fastgit.cc/github.com/sourcegit-scm/sourcegit
synced 2026-04-21 21:30:37 +08:00
fix: app crashes when close a repository on read-only drive (#1080)
Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
@@ -518,7 +518,7 @@ namespace SourceGit.ViewModels
|
||||
{
|
||||
File.WriteAllText(Path.Combine(_gitDir, "sourcegit.settings"), settingsSerialized);
|
||||
}
|
||||
catch (DirectoryNotFoundException)
|
||||
catch
|
||||
{
|
||||
// Ignore
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user