fix: crash because CRLFMode do not have a default value

This commit is contained in:
leo
2024-06-19 16:32:21 +08:00
parent 3dc32c87a8
commit 3d205378d8

View File

@@ -43,7 +43,7 @@ namespace SourceGit.Views
{
get;
set;
}
} = Models.CRLFMode.Supported[0];
public static readonly StyledProperty<string> GitVersionProperty =
AvaloniaProperty.Register<Preference, string>(nameof(GitVersion));