Diff show loading tip

This commit is contained in:
leo 2020-07-09 17:39:16 +08:00
parent 04ca0a9236
commit da81d0c6c8

View file

@ -39,6 +39,8 @@ namespace SourceGit.UI {
/// <param name="orgPath"></param> /// <param name="orgPath"></param>
public void Diff(Git.Repository repo, string options, string path, string orgPath = null) { public void Diff(Git.Repository repo, string options, string path, string orgPath = null) {
SetTitle(path, orgPath); SetTitle(path, orgPath);
loading.Visibility = Visibility.Visible;
Task.Run(() => { Task.Run(() => {
var args = $"{options} -- "; var args = $"{options} -- ";
if (!string.IsNullOrEmpty(orgPath)) args += $"{orgPath} "; if (!string.IsNullOrEmpty(orgPath)) args += $"{orgPath} ";