feature(*): supports multi-repo editing

This commit is contained in:
leo 2020-08-03 16:23:00 +08:00
parent 3c80f2700c
commit 81a3cb9566
41 changed files with 666 additions and 450 deletions

View file

@ -19,15 +19,18 @@ namespace SourceGit.UI {
/// <summary>
/// Show this dialog.
/// </summary>
/// <param name="repo"></param>
/// <param name="job"></param>
public static void Show(Action job) {
public static void Show(Git.Repository repo, Action job) {
var dialog = new Waiting();
PopupManager.Show(dialog);
PopupManager.Lock();
var popup = App.Launcher.GetPopupManager(repo);
popup?.Show(dialog);
popup?.Lock();
Task.Run(() => {
job.Invoke();
dialog.Dispatcher.Invoke(() => {
PopupManager.Close(true);
popup?.Close(true);
});
});
}