mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-11-01 13:13:21 -07:00
optimize<Histories>: move graph.SetData out from UI thread
This commit is contained in:
parent
47cb708744
commit
316344939a
2 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue