Skip to content

Commit ca53917

Browse files
gave92yaira2
authored andcommitted
Fix: Fixed crash in Dual Pane mode when switching away from Git folder (#12599)
1 parent 9810731 commit ca53917

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/Files.App/UserControls/StatusBarControl.xaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,8 @@
208208
Orientation="Horizontal">
209209
<RadioButton
210210
Content="{helpers:ResourceString Name=Locals}"
211-
IsChecked="{x:Bind DirectoryPropertiesViewModel.ShowLocals, Mode=TwoWay}"
211+
DataContext="{x:Bind DirectoryPropertiesViewModel, Mode=OneWay}"
212+
IsChecked="{Binding ShowLocals, Mode=TwoWay}"
212213
Style="{StaticResource Local.RadioButtonStyle}" />
213214
<RadioButton Content="{helpers:ResourceString Name=Remotes}" Style="{StaticResource Local.RadioButtonStyle}" />
214215
</StackPanel>
@@ -231,10 +232,11 @@
231232
Grid.Row="1"
232233
Padding="4"
233234
Background="{ThemeResource CardBackgroundFillColorDefaultBrush}"
235+
DataContext="{x:Bind DirectoryPropertiesViewModel, Mode=OneWay}"
234236
IsItemClickEnabled="True"
235237
ItemClick="BranchesList_ItemClick"
236238
ItemsSource="{x:Bind DirectoryPropertiesViewModel.BranchesNames, Mode=OneWay}"
237-
SelectedIndex="{x:Bind DirectoryPropertiesViewModel.SelectedBranchIndex, Mode=TwoWay}"
239+
SelectedIndex="{Binding SelectedBranchIndex, Mode=TwoWay}"
238240
SelectionMode="Single" />
239241
</Grid>
240242
</Flyout>

0 commit comments

Comments
 (0)