mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-23 13:14:59 +00:00
refactor<*>: move SourceGit.Git.Preference to SourceGit.Preference
This commit is contained in:
parent
d248394e42
commit
3e6c837916
27 changed files with 236 additions and 260 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue