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 Jun 13, 2023
1 parent c046e4a commit 34853e1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Files.App/UserControls/StatusBarControl.xaml
Original file line number Diff line number Diff line change
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 34853e1

Please sign in to comment.