fix: checking if current worktree file changed

Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
leo
2025-12-26 20:43:34 +08:00
parent a273cad23b
commit 283f84f6e6

View File

@@ -807,7 +807,7 @@ namespace SourceGit.ViewModels
{
var o = old[idx];
var c = cur[idx];
if (o.Path.Equals(c.Path, StringComparison.Ordinal) || 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;
}