mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-24 05:35:00 +00:00
optimize<WorkingCopy>: improve loading time for large number of local changes
This commit is contained in:
parent
4cd07d90a5
commit
5434629f4c
3 changed files with 154 additions and 87 deletions
|
@ -324,9 +324,10 @@ namespace SourceGit.Views.Widgets {
|
|||
|
||||
Task.Run(() => {
|
||||
var changes = new Commands.LocalChanges(repo.Path, Models.Preference.Instance.Git.IncludeUntrackedInWC).Result();
|
||||
(pages.Get("working_copy") as WorkingCopy).SetData(changes);
|
||||
|
||||
Dispatcher.Invoke(() => {
|
||||
badgeLocalChanges.Label = $"{changes.Count}";
|
||||
(pages.Get("working_copy") as WorkingCopy).SetData(changes);
|
||||
UpdateMergeBar(changes);
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue