mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-21 04:04:59 +00:00
fix: COMMIT & PUSH
should hide when there's no remotes available (#956)
Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
parent
8edd955370
commit
8ed7a99923
3 changed files with 11 additions and 0 deletions
|
@ -937,6 +937,9 @@ namespace SourceGit.ViewModels
|
|||
CurrentBranch = branches.Find(x => x.IsCurrent);
|
||||
LocalBranchTrees = builder.Locals;
|
||||
RemoteBranchTrees = builder.Remotes;
|
||||
|
||||
if (_workingCopy != null)
|
||||
_workingCopy.HasRemotes = remotes.Count > 0;
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue