Skip to content

Commit fbfdaec

Browse files
authored
Feature: Added option to close active pane from the right click context menu (#15989)
1 parent aca294a commit fbfdaec

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/Files.App/Data/Factories/ContentPageContextFlyoutFactory.cs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,15 @@ public static List<ContextMenuFlyoutItemViewModel> GetBaseItemMenuItems(
9898

9999
return new List<ContextMenuFlyoutItemViewModel>()
100100
{
101+
new ContextMenuFlyoutItemViewModelBuilder(Commands.CloseActivePane)
102+
{
103+
IsVisible = !itemsSelected && Commands.CloseActivePane.IsExecutable,
104+
}.Build(),
105+
new ContextMenuFlyoutItemViewModel()
106+
{
107+
ItemType = ContextMenuFlyoutItemType.Separator,
108+
ShowItem = !itemsSelected && Commands.CloseActivePane.IsExecutable
109+
},
101110
new ContextMenuFlyoutItemViewModel()
102111
{
103112
Text = "Layout".GetLocalizedResource(),

0 commit comments

Comments
 (0)