Skip to content

Commit 6e2025d

Browse files
committed
Requested change
1 parent 285e3db commit 6e2025d

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

src/Files.App/Data/EventArguments/ToolbarFlyoutOpeningEventArgs.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ namespace Files.App.Data.EventArguments
77
{
88
public sealed class ToolbarFlyoutOpeningEventArgs
99
{
10-
public MenuFlyout OpeningFlyout { get; set; }
10+
public MenuFlyout OpeningFlyout { get; }
11+
12+
public ToolbarFlyoutOpeningEventArgs(MenuFlyout openingFlyout)
13+
{
14+
OpeningFlyout = openingFlyout;
15+
}
1116
}
1217
}

src/Files.App/ViewModels/UserControls/AddressToolbarViewModel.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -458,7 +458,7 @@ public void PathItemSeparator_DataContextChanged(FrameworkElement sender, DataCo
458458

459459
public void PathboxItemFlyout_Opening(object sender, object e)
460460
{
461-
ToolbarFlyoutOpening?.Invoke(this, new ToolbarFlyoutOpeningEventArgs() { OpeningFlyout = (MenuFlyout)sender });
461+
ToolbarFlyoutOpening?.Invoke(this, new ToolbarFlyoutOpeningEventArgs((MenuFlyout)sender));
462462
}
463463

464464
public void PathBoxItemFlyout_Closed(object sender, object e)

0 commit comments

Comments
 (0)