mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-12-24 20:57:19 -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 class Histories : ObservableObject
|
||||||
{
|
{
|
||||||
|
public Repository Repo
|
||||||
|
{
|
||||||
|
get => _repo;
|
||||||
|
}
|
||||||
|
|
||||||
public bool IsLoading
|
public bool IsLoading
|
||||||
{
|
{
|
||||||
get => _isLoading;
|
get => _isLoading;
|
||||||
|
|
|
@ -668,8 +668,7 @@
|
||||||
<ContentControl Grid.Row="2" Content="{Binding SelectedView}">
|
<ContentControl Grid.Row="2" Content="{Binding SelectedView}">
|
||||||
<ContentControl.DataTemplates>
|
<ContentControl.DataTemplates>
|
||||||
<DataTemplate DataType="vm:Histories">
|
<DataTemplate DataType="vm:Histories">
|
||||||
<v:Histories CurrentBranch="{Binding $parent[v:Repository].((vm:Repository)DataContext).CurrentBranch}"
|
<v:Histories CurrentBranch="{Binding Repo.CurrentBranch}" NavigationId="{Binding NavigationId}"/>
|
||||||
NavigationId="{Binding NavigationId}"/>
|
|
||||||
</DataTemplate>
|
</DataTemplate>
|
||||||
|
|
||||||
<DataTemplate DataType="vm:WorkingCopy">
|
<DataTemplate DataType="vm:WorkingCopy">
|
||||||
|
|
Loading…
Reference in a new issue