mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-12-23 20:47:25 -08:00
refactor: remove binding errors
This commit is contained in:
parent
abdf9d7e75
commit
ec14d9d533
2 changed files with 6 additions and 2 deletions
|
@ -10,6 +10,11 @@ namespace SourceGit.ViewModels
|
|||
{
|
||||
public class Histories : ObservableObject
|
||||
{
|
||||
public Repository Repo
|
||||
{
|
||||
get => _repo;
|
||||
}
|
||||
|
||||
public bool IsLoading
|
||||
{
|
||||
get => _isLoading;
|
||||
|
|
|
@ -668,8 +668,7 @@
|
|||
<ContentControl Grid.Row="2" Content="{Binding SelectedView}">
|
||||
<ContentControl.DataTemplates>
|
||||
<DataTemplate DataType="vm:Histories">
|
||||
<v:Histories CurrentBranch="{Binding $parent[v:Repository].((vm:Repository)DataContext).CurrentBranch}"
|
||||
NavigationId="{Binding NavigationId}"/>
|
||||
<v:Histories CurrentBranch="{Binding Repo.CurrentBranch}" NavigationId="{Binding NavigationId}"/>
|
||||
</DataTemplate>
|
||||
|
||||
<DataTemplate DataType="vm:WorkingCopy">
|
||||
|
|
Loading…
Reference in a new issue