mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-21 04:04:59 +00:00
fix<Submodules>: compatible with un-inited submodule
This commit is contained in:
parent
f93ad7e9e2
commit
faffba09c8
2 changed files with 17 additions and 7 deletions
|
@ -444,8 +444,10 @@ namespace SourceGit.ViewModels {
|
|||
|
||||
var commits = new Commands.QueryCommits(FullPath, limits).Result();
|
||||
Dispatcher.UIThread.Invoke(() => {
|
||||
_histories.IsLoading = false;
|
||||
_histories.Commits = commits;
|
||||
if (_histories != null) {
|
||||
_histories.IsLoading = false;
|
||||
_histories.Commits = commits;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -488,7 +490,7 @@ namespace SourceGit.ViewModels {
|
|||
public void RefreshStashes() {
|
||||
var stashes = new Commands.QueryStashes(FullPath).Result();
|
||||
Dispatcher.UIThread.Invoke(() => {
|
||||
_stashesPage.Stashes = stashes;
|
||||
if (_stashesPage != null) _stashesPage.Stashes = stashes;
|
||||
OnPropertyChanged(nameof(StashesCount));
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue