Skip to content

Commit

Permalink
Revert
Browse files Browse the repository at this point in the history
  • Loading branch information
yaira2 committed May 11, 2023
1 parent 302a2c2 commit 6564ccf
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
4 changes: 1 addition & 3 deletions src/Files.App/UserControls/StatusBarControl.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,9 @@
<Button.Flyout>
<Flyout Opening="Flyout_Opening">
<Grid
x:Name="BranchesGrid"
Width="300"
Height="340"
Margin="-16"
LostFocus="BranchesGrid_LostFocus">
Margin="-16">
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="*" />
Expand Down
5 changes: 0 additions & 5 deletions src/Files.App/UserControls/StatusBarControl.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,5 @@ private void Flyout_Opening(object sender, object e)
{
DirectoryPropertiesViewModel.SelectedBranchIndex = DirectoryPropertiesViewModel.ActiveBranchIndex;
}

private void BranchesGrid_LostFocus(object sender, RoutedEventArgs e)
{
((Popup)((FlyoutPresenter)((Grid)sender).Parent).Parent).IsOpen = false;
}
}
}

0 comments on commit 6564ccf

Please sign in to comment.