mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-11-01 13:13:21 -07:00
fix<App>: 由于配置文件引用,在某些情况下导致程序无法启动
This commit is contained in:
parent
f4a51c79ea
commit
8c1445ff0c
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue