mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-12-26 21:17:20 -08:00
33 lines
772 B
C#
33 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;
|
||
|
});
|
||
|
});
|
||
|
}
|
||
|
}
|
||
|
}
|