From 6a98af17e4065fed8d90e03943e5682cfb80a347 Mon Sep 17 00:00:00 2001 From: leo Date: Mon, 3 Jun 2024 10:17:47 +0800 Subject: [PATCH] ux: add missing progress description --- src/ViewModels/CreateBranch.cs | 1 + src/ViewModels/GitFlowFinish.cs | 1 + src/ViewModels/GitFlowStart.cs | 1 + 3 files changed, 3 insertions(+) diff --git a/src/ViewModels/CreateBranch.cs b/src/ViewModels/CreateBranch.cs index 57cc9aff..ad270809 100644 --- a/src/ViewModels/CreateBranch.cs +++ b/src/ViewModels/CreateBranch.cs @@ -126,6 +126,7 @@ namespace SourceGit.ViewModels } else { + SetProgressDescription($"Create new branch '{_name}'"); Commands.Branch.Create(_repo.FullPath, _name, _baseOnRevision); } diff --git a/src/ViewModels/GitFlowFinish.cs b/src/ViewModels/GitFlowFinish.cs index 1520285a..1fad99ae 100644 --- a/src/ViewModels/GitFlowFinish.cs +++ b/src/ViewModels/GitFlowFinish.cs @@ -42,6 +42,7 @@ namespace SourceGit.ViewModels break; } + SetProgressDescription($"Git Flow - finishing {_branch.Name} ..."); var succ = new Commands.GitFlow(_repo.FullPath).Finish(_type, branch, KeepBranch); CallUIThread(() => _repo.SetWatcherEnabled(true)); return succ; diff --git a/src/ViewModels/GitFlowStart.cs b/src/ViewModels/GitFlowStart.cs index ddcec725..33fa3cf4 100644 --- a/src/ViewModels/GitFlowStart.cs +++ b/src/ViewModels/GitFlowStart.cs @@ -65,6 +65,7 @@ namespace SourceGit.ViewModels _repo.SetWatcherEnabled(false); return Task.Run(() => { + SetProgressDescription($"Git Flow - starting {_prefix}{_name} ..."); var succ = new Commands.GitFlow(_repo.FullPath).Start(_type, _name); CallUIThread(() => _repo.SetWatcherEnabled(true)); return succ;