mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-24 21:54:59 +00:00
code_review: PR #1043
`FileModeChange` should not be changed out of UIThread Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
parent
72c7f24e2f
commit
598bba5210
1 changed files with 1 additions and 3 deletions
|
@ -60,6 +60,7 @@ namespace SourceGit.ViewModels
|
|||
{
|
||||
_isTextDiff = previous._isTextDiff;
|
||||
_content = previous._content;
|
||||
_fileModeChange = previous._fileModeChange;
|
||||
_unifiedLines = previous._unifiedLines;
|
||||
_ignoreWhitespace = previous._ignoreWhitespace;
|
||||
_info = previous._info;
|
||||
|
@ -116,10 +117,7 @@ namespace SourceGit.ViewModels
|
|||
var latest = new Commands.Diff(_repo, _option, numLines, _ignoreWhitespace).Result();
|
||||
var info = new Info(_option, numLines, _ignoreWhitespace, latest);
|
||||
if (_info != null && info.IsSame(_info))
|
||||
{
|
||||
FileModeChange = latest.FileModeChange;
|
||||
return;
|
||||
}
|
||||
|
||||
_info = info;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue