mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-12-23 20:47:25 -08: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.Media;
|
||||||
using System.Windows.Controls;
|
using System.Windows.Controls;
|
||||||
using System.Windows.Documents;
|
using System.Windows.Documents;
|
||||||
|
|
|
@ -92,10 +92,11 @@ namespace SourceGit.Views.Widgets {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
graph.SetData(visible, searching);
|
||||||
|
|
||||||
Dispatcher.Invoke(() => {
|
Dispatcher.Invoke(() => {
|
||||||
loading.IsAnimating = false;
|
loading.IsAnimating = false;
|
||||||
loading.Visibility = Visibility.Collapsed;
|
loading.Visibility = Visibility.Collapsed;
|
||||||
graph.SetData(visible, searching);
|
|
||||||
commitList.ItemsSource = visible;
|
commitList.ItemsSource = visible;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue