From 8c1445ff0ca4e9263ec899b56111ab1a8172d11b Mon Sep 17 00:00:00 2001 From: ZCShou <72115@163.com> Date: Sun, 7 Feb 2021 13:56:22 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=94=B1=E4=BA=8E=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E6=96=87=E4=BB=B6=E5=BC=95=E7=94=A8=EF=BC=8C=E5=9C=A8?= =?UTF-8?q?=E6=9F=90=E4=BA=9B=E6=83=85=E5=86=B5=E4=B8=8B=E5=AF=BC=E8=87=B4?= =?UTF-8?q?=E7=A8=8B=E5=BA=8F=E6=97=A0=E6=B3=95=E5=90=AF=E5=8A=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.xaml.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/App.xaml.cs b/src/App.xaml.cs index b98da657..57823bf4 100644 --- a/src/App.xaml.cs +++ b/src/App.xaml.cs @@ -104,7 +104,7 @@ namespace SourceGit { } // Try auto configure git via registry. - if (!IsGitConfigured) { + if (Setting == null || !IsGitConfigured) { var root = RegistryKey.OpenBaseKey( RegistryHive.LocalMachine, Environment.Is64BitOperatingSystem ? RegistryView.Registry64 : RegistryView.Registry32);