Skip to content

Commit

Permalink
Fix: Fixed crash in Dual Pane mode when switching away from Git folder (
Browse files Browse the repository at this point in the history
  • Loading branch information
gave92 authored and yaira2 committed Jun 14, 2023
1 parent fdff550 commit 9155f74
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Files.App/UserControls/StatusBarControl.xaml
Expand Up @@ -208,7 +208,8 @@
Orientation="Horizontal">
<RadioButton
Content="{helpers:ResourceString Name=Locals}"
IsChecked="{x:Bind DirectoryPropertiesViewModel.ShowLocals, Mode=TwoWay}"
DataContext="{x:Bind DirectoryPropertiesViewModel, Mode=OneWay}"
IsChecked="{Binding ShowLocals, Mode=TwoWay}"
Style="{StaticResource Local.RadioButtonStyle}" />
<RadioButton Content="{helpers:ResourceString Name=Remotes}" Style="{StaticResource Local.RadioButtonStyle}" />
</StackPanel>
Expand All @@ -231,10 +232,11 @@
Grid.Row="1"
Padding="4"
Background="{ThemeResource CardBackgroundFillColorDefaultBrush}"
DataContext="{x:Bind DirectoryPropertiesViewModel, Mode=OneWay}"
IsItemClickEnabled="True"
ItemClick="BranchesList_ItemClick"
ItemsSource="{x:Bind DirectoryPropertiesViewModel.BranchesNames, Mode=OneWay}"
SelectedIndex="{x:Bind DirectoryPropertiesViewModel.SelectedBranchIndex, Mode=TwoWay}"
SelectedIndex="{Binding SelectedBranchIndex, Mode=TwoWay}"
SelectionMode="Single" />
</Grid>
</Flyout>
Expand Down

0 comments on commit 9155f74

Please sign in to comment.