Skip to content

Commit 3f319f7

Browse files
authored
Feature: Added option to pin recycle bin to the start menu (#10921)
1 parent 2d1f8c1 commit 3f319f7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Files.App/Helpers/ContextFlyoutItemHelper.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -556,6 +556,7 @@ public static List<ContextMenuFlyoutItemViewModel> GetBaseLayoutMenuItems(Curren
556556
Text = "PinItemToStart/Text".GetLocalizedResource(),
557557
Glyph = "\uE840",
558558
Command = commandsViewModel.PinItemToStartCommand,
559+
ShowInRecycleBin = true,
559560
ShowInFtpPage = true,
560561
ShowOnShift = true,
561562
ShowItem = itemViewModel.CurrentFolder is not null && !itemViewModel.CurrentFolder.IsItemPinnedToStart,
@@ -565,6 +566,7 @@ public static List<ContextMenuFlyoutItemViewModel> GetBaseLayoutMenuItems(Curren
565566
Text = "UnpinItemFromStart/Text".GetLocalizedResource(),
566567
Glyph = "\uE77A",
567568
Command = commandsViewModel.UnpinItemFromStartCommand,
569+
ShowInRecycleBin = true,
568570
ShowInFtpPage = true,
569571
ShowOnShift = true,
570572
ShowItem = itemViewModel.CurrentFolder is not null && itemViewModel.CurrentFolder.IsItemPinnedToStart,
@@ -981,6 +983,7 @@ public static List<ContextMenuFlyoutItemViewModel> GetBaseItemMenuItems(BaseLayo
981983
Command = commandsViewModel.PinItemToStartCommand,
982984
ShowOnShift = true,
983985
ShowItem = selectedItems.All(x => !x.IsShortcut && (x.PrimaryItemAttribute == StorageItemTypes.Folder || x.IsExecutable) && !x.IsArchive && !x.IsItemPinnedToStart),
986+
ShowInRecycleBin = true,
984987
ShowInSearchPage = true,
985988
ShowInFtpPage = true,
986989
SingleItemOnly = true,
@@ -992,6 +995,7 @@ public static List<ContextMenuFlyoutItemViewModel> GetBaseItemMenuItems(BaseLayo
992995
Command = commandsViewModel.UnpinItemFromStartCommand,
993996
ShowOnShift = true,
994997
ShowItem = selectedItems.All(x => !x.IsShortcut && (x.PrimaryItemAttribute == StorageItemTypes.Folder || x.IsExecutable) && !x.IsArchive && x.IsItemPinnedToStart),
998+
ShowInRecycleBin = true,
995999
ShowInSearchPage = true,
9961000
ShowInFtpPage = true,
9971001
SingleItemOnly = true,

0 commit comments

Comments
 (0)