Skip to content

Commit 4d456f8

Browse files
committed
enhance: clear updating workingcopy timer while calling MarkBranchesDirtyManually
Signed-off-by: leo <[email protected]>
1 parent 9445faa commit 4d456f8

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/Models/Watcher.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ public IDisposable Lock()
8484
public void MarkBranchUpdated()
8585
{
8686
Interlocked.Exchange(ref _updateBranch, 0);
87+
Interlocked.Exchange(ref _updateWC, 0);
8788
}
8889

8990
public void MarkTagUpdated()

src/ViewModels/WorkingCopy.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -829,7 +829,7 @@ private bool IsChanged(List<Models.Change> old, List<Models.Change> cur)
829829
{
830830
var o = old[idx];
831831
var c = cur[idx];
832-
if (o.Path != c.Path || o.Index != c.Index || o.WorkTree != c.WorkTree)
832+
if (o.Path.Equals(c.Path, StringComparison.Ordinal) || o.Index != c.Index || o.WorkTree != c.WorkTree)
833833
return true;
834834
}
835835

0 commit comments

Comments
 (0)