refactor<*>: move SourceGit.Git.Preference to SourceGit.Preference

This commit is contained in:
leo 2020-12-17 11:55:06 +08:00
parent d248394e42
commit 3e6c837916
27 changed files with 236 additions and 260 deletions

View file

@ -46,6 +46,14 @@ namespace SourceGit.UI {
private List<RemoteNode> cachedRemotes = new List<RemoteNode>();
private string abortCommand = null;
/// <summary>
/// Expand/Collapsed tags
/// </summary>
public bool ExpandTags {
get { return repo.ExpandTags; }
set { repo.ExpandTags = value; }
}
/// <summary>
/// Constructor.
/// </summary>
@ -65,9 +73,10 @@ namespace SourceGit.UI {
});
};
repo = opened;
InitializeComponent();
repo = opened;
histories.Repo = opened;
commits.Repo = opened;
@ -347,7 +356,7 @@ namespace SourceGit.UI {
}
private void OpenTerminal(object sender, RoutedEventArgs e) {
var bash = Path.Combine(App.Preference.GitExecutable, "..", "bash.exe");
var bash = Path.Combine(App.Setting.Tools.GitExecutable, "..", "bash.exe");
if (!File.Exists(bash)) {
App.RaiseError("Can NOT locate bash.exe. Make sure bash.exe exists under the same folder with git.exe");
return;