optimize<Histories>: move graph.SetData out from UI thread

This commit is contained in:
leo 2021-08-05 09:36:06 +08:00
parent 47cb708744
commit 316344939a
2 changed files with 3 additions and 3 deletions

View file

@ -1,5 +1,4 @@
using System.Collections.Generic;
using System.Windows;
using System.Windows;
using System.Windows.Media;
using System.Windows.Controls;
using System.Windows.Documents;

View file

@ -92,10 +92,11 @@ namespace SourceGit.Views.Widgets {
}
}
graph.SetData(visible, searching);
Dispatcher.Invoke(() => {
loading.IsAnimating = false;
loading.Visibility = Visibility.Collapsed;
graph.SetData(visible, searching);
commitList.ItemsSource = visible;
});
}