Skip to content

Commit 598bba5

Browse files
committed
code_review: PR #1043
`FileModeChange` should not be changed out of UIThread Signed-off-by: leo <longshuang@msn.cn>
1 parent 72c7f24 commit 598bba5

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/ViewModels/DiffContext.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ public DiffContext(string repo, Models.DiffOption option, DiffContext previous =
6060
{
6161
_isTextDiff = previous._isTextDiff;
6262
_content = previous._content;
63+
_fileModeChange = previous._fileModeChange;
6364
_unifiedLines = previous._unifiedLines;
6465
_ignoreWhitespace = previous._ignoreWhitespace;
6566
_info = previous._info;
@@ -116,10 +117,7 @@ private void LoadDiffContent()
116117
var latest = new Commands.Diff(_repo, _option, numLines, _ignoreWhitespace).Result();
117118
var info = new Info(_option, numLines, _ignoreWhitespace, latest);
118119
if (_info != null && info.IsSame(_info))
119-
{
120-
FileModeChange = latest.FileModeChange;
121120
return;
122-
}
123121

124122
_info = info;
125123

0 commit comments

Comments
 (0)