mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-23 13:14:59 +00:00
feature<Dashboard>: show waiting panel while staging objects
This commit is contained in:
parent
5bc7f9021b
commit
c1b9fbaddd
7 changed files with 59 additions and 29 deletions
|
@ -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(() => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue