mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-11-01 13:13:21 -07:00
32 lines
772 B
C#
32 lines
772 B
C#
using System.Threading.Tasks;
|
|
|
|
using Avalonia.Controls;
|
|
using Avalonia.Threading;
|
|
|
|
namespace SourceGit.Views
|
|
{
|
|
public partial class CommitRelationTracking : UserControl
|
|
{
|
|
public CommitRelationTracking()
|
|
{
|
|
InitializeComponent();
|
|
}
|
|
|
|
public CommitRelationTracking(ViewModels.CommitDetail detail)
|
|
{
|
|
InitializeComponent();
|
|
|
|
LoadingIcon.IsVisible = true;
|
|
|
|
Task.Run(() =>
|
|
{
|
|
var containsIn = detail.GetRefsContainsThisCommit();
|
|
Dispatcher.UIThread.Invoke(() =>
|
|
{
|
|
Container.ItemsSource = containsIn;
|
|
LoadingIcon.IsVisible = false;
|
|
});
|
|
});
|
|
}
|
|
}
|
|
}
|