feature<Dashboard>: show waiting panel while staging objects

This commit is contained in:
leo 2021-04-02 17:37:47 +08:00
parent 5bc7f9021b
commit c1b9fbaddd
7 changed files with 59 additions and 29 deletions

View file

@ -20,11 +20,14 @@ namespace SourceGit.UI {
/// Show this dialog.
/// </summary>
/// <param name="repo"></param>
/// <param name="tip"></param>
/// <param name="job"></param>
public static void Show(Git.Repository repo, Action job) {
public static void Show(Git.Repository repo, string tipKey, Action job) {
var dialog = new Waiting();
var popup = repo.GetPopupManager();
var tip = dialog.FindResource(tipKey) as string;
if (tip != null) dialog.txtTip.Text = tip;
var popup = repo.GetPopupManager();
popup?.Show(dialog);
popup?.Lock();
Task.Run(() => {