enhance: clear updating workingcopy timer while calling MarkBranchesDirtyManually

Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
leo
2025-11-06 19:29:00 +08:00
parent 9445faa238
commit 4d456f8558
2 changed files with 2 additions and 1 deletions

View File

@@ -84,6 +84,7 @@ namespace SourceGit.Models
public void MarkBranchUpdated()
{
Interlocked.Exchange(ref _updateBranch, 0);
Interlocked.Exchange(ref _updateWC, 0);
}
public void MarkTagUpdated()

View File

@@ -829,7 +829,7 @@ namespace SourceGit.ViewModels
{
var o = old[idx];
var c = cur[idx];
if (o.Path != c.Path || o.Index != c.Index || o.WorkTree != c.WorkTree)
if (o.Path.Equals(c.Path, StringComparison.Ordinal) || o.Index != c.Index || o.WorkTree != c.WorkTree)
return true;
}