mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-24 05:35:00 +00:00
fix: app crashed after enable Show children in the commit details
(#1072)
Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
parent
855466686d
commit
df6cbcaa28
2 changed files with 2 additions and 2 deletions
|
@ -615,7 +615,7 @@ namespace SourceGit.ViewModels
|
|||
var cmdChildren = new Commands.QueryCommitChildren(_repo.FullPath, _commit.SHA, max) { Cancel = _cancelToken };
|
||||
var children = cmdChildren.Result();
|
||||
if (!cmdChildren.Cancel.Requested)
|
||||
Dispatcher.UIThread.Post(() => Children.AddRange(children));
|
||||
Dispatcher.UIThread.Post(() => Children = children);
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue