fix<App>: 由于配置文件引用,在某些情况下导致程序无法启动

This commit is contained in:
ZCShou 2021-02-07 13:56:22 +08:00
parent f4a51c79ea
commit 8c1445ff0c

View file

@ -104,7 +104,7 @@ namespace SourceGit {
} }
// Try auto configure git via registry. // Try auto configure git via registry.
if (!IsGitConfigured) { if (Setting == null || !IsGitConfigured) {
var root = RegistryKey.OpenBaseKey( var root = RegistryKey.OpenBaseKey(
RegistryHive.LocalMachine, RegistryHive.LocalMachine,
Environment.Is64BitOperatingSystem ? RegistryView.Registry64 : RegistryView.Registry32); Environment.Is64BitOperatingSystem ? RegistryView.Registry64 : RegistryView.Registry32);