Skip to content

Commit

Permalink
Fix: Fixed an issue where Git columns would cause the CPU usage to in…
Browse files Browse the repository at this point in the history
…crease (#13028)
  • Loading branch information
ferrariofilippo authored Jul 21, 2023
1 parent 5f07f6a commit 75e41fa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Files.App/Data/Models/ItemViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1206,11 +1206,11 @@ await SafetyExtensions.IgnoreExceptions(() =>
cts.Token.ThrowIfCancellationRequested();
await SafetyExtensions.IgnoreExceptions(() =>
{
var repo = new LibGit2Sharp.Repository(repoPath);
GitItemModel gitItemModel = GitHelpers.GetGitInformationForItem(repo, item.ItemPath);

return dispatcherQueue.EnqueueOrInvokeAsync(() =>
{
var repo = new LibGit2Sharp.Repository(repoPath);
GitItemModel gitItemModel = GitHelpers.GetGitInformationForItem(repo, item.ItemPath);

var gitItem = item.AsGitItem;
gitItem.UnmergedGitStatusIcon = gitItemModel.Status switch
{
Expand Down

0 comments on commit 75e41fa

Please sign in to comment.