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;
|
_isTextDiff = previous._isTextDiff;
|
||||||
_content = previous._content;
|
_content = previous._content;
|
||||||
|
_fileModeChange = previous._fileModeChange;
|
||||||
_unifiedLines = previous._unifiedLines;
|
_unifiedLines = previous._unifiedLines;
|
||||||
_ignoreWhitespace = previous._ignoreWhitespace;
|
_ignoreWhitespace = previous._ignoreWhitespace;
|
||||||
_info = previous._info;
|
_info = previous._info;
|
||||||
|
@ -116,10 +117,7 @@ namespace SourceGit.ViewModels
|
||||||
var latest = new Commands.Diff(_repo, _option, numLines, _ignoreWhitespace).Result();
|
var latest = new Commands.Diff(_repo, _option, numLines, _ignoreWhitespace).Result();
|
||||||
var info = new Info(_option, numLines, _ignoreWhitespace, latest);
|
var info = new Info(_option, numLines, _ignoreWhitespace, latest);
|
||||||
if (_info != null && info.IsSame(_info))
|
if (_info != null && info.IsSame(_info))
|
||||||
{
|
|
||||||
FileModeChange = latest.FileModeChange;
|
|
||||||
return;
|
return;
|
||||||
}
|
|
||||||
|
|
||||||
_info = info;
|
_info = info;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue