From 3d205378d84b9d1fb9aa6e855958646e7362deb4 Mon Sep 17 00:00:00 2001 From: leo Date: Wed, 19 Jun 2024 16:32:21 +0800 Subject: [PATCH] fix: crash because CRLFMode do not have a default value --- src/Views/Preference.axaml.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Views/Preference.axaml.cs b/src/Views/Preference.axaml.cs index 5669c9ea..bb91bc5b 100644 --- a/src/Views/Preference.axaml.cs +++ b/src/Views/Preference.axaml.cs @@ -43,7 +43,7 @@ namespace SourceGit.Views { get; set; - } + } = Models.CRLFMode.Supported[0]; public static readonly StyledProperty GitVersionProperty = AvaloniaProperty.Register(nameof(GitVersion));