mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-20 19:55:00 +00:00
fix<Native>: fix wrong file filter on macOS platform.
This commit is contained in:
parent
dbd91c9b58
commit
353557ec10
10 changed files with 41 additions and 45 deletions
|
@ -26,7 +26,7 @@ namespace SourceGit.ViewModels {
|
|||
_instance.Repositories.RemoveAll(x => !Directory.Exists(x.FullPath));
|
||||
|
||||
if (!_instance.IsGitConfigured) {
|
||||
_instance.GitInstallDir = Native.OS.FindGitInstallDir();
|
||||
_instance.GitInstallPath = Native.OS.FindGitExecutable();
|
||||
}
|
||||
|
||||
return _instance;
|
||||
|
@ -93,15 +93,15 @@ namespace SourceGit.ViewModels {
|
|||
|
||||
[JsonIgnore]
|
||||
public bool IsGitConfigured {
|
||||
get => !string.IsNullOrEmpty(GitInstallDir) && Directory.Exists(GitInstallDir);
|
||||
get => !string.IsNullOrEmpty(GitInstallPath) && File.Exists(GitInstallPath);
|
||||
}
|
||||
|
||||
public string GitInstallDir {
|
||||
get => Native.OS.GitInstallDir;
|
||||
public string GitInstallPath {
|
||||
get => Native.OS.GitInstallPath;
|
||||
set {
|
||||
if (Native.OS.GitInstallDir != value) {
|
||||
Native.OS.GitInstallDir = value;
|
||||
OnPropertyChanged(nameof(GitInstallDir));
|
||||
if (Native.OS.GitInstallPath != value) {
|
||||
Native.OS.GitInstallPath = value;
|
||||
OnPropertyChanged(nameof(GitInstallPath));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue