33
44using Files . App . Helpers . ContextFlyouts ;
55using Files . App . UserControls . Sidebar ;
6- using Files . App . ViewModels . Dialogs ;
76using Microsoft . UI . Input ;
87using Microsoft . UI . Xaml ;
98using Microsoft . UI . Xaml . Controls ;
1211using System . Collections . Specialized ;
1312using System . IO ;
1413using System . Windows . Input ;
15- using Windows . ApplicationModel . DataTransfer . DragDrop ;
1614using Windows . ApplicationModel . DataTransfer ;
15+ using Windows . ApplicationModel . DataTransfer . DragDrop ;
1716using Windows . Storage ;
1817using Windows . System ;
1918using Windows . UI . Core ;
20- using Files . Core . Storage ;
21- using Files . Core . Storage . Extensions ;
2219
2320namespace Files . App . ViewModels . UserControls
2421{
@@ -1046,13 +1043,6 @@ private List<ContextMenuFlyoutItemViewModel> GetLocationItemMenuItems(INavigatio
10461043 ShowItem = options . ShowEjectDevice
10471044 } ,
10481045 new ContextMenuFlyoutItemViewModel ( )
1049- {
1050- Text = "FormatDriveText" . GetLocalizedResource ( ) ,
1051- Command = FormatDriveCommand ,
1052- CommandParameter = item ,
1053- ShowItem = options . ShowFormatDrive
1054- } ,
1055- new ContextMenuFlyoutItemViewModel ( )
10561046 {
10571047 Text = "Properties" . GetLocalizedResource ( ) ,
10581048 ThemedIconModel = new ThemedIconModel ( )
@@ -1066,9 +1056,19 @@ private List<ContextMenuFlyoutItemViewModel> GetLocationItemMenuItems(INavigatio
10661056 new ContextMenuFlyoutItemViewModel ( )
10671057 {
10681058 ItemType = ContextMenuFlyoutItemType . Separator ,
1069- ShowItem = Commands . OpenTerminalFromSidebar . IsExecutable
1059+ ShowItem = Commands . OpenTerminalFromSidebar . IsExecutable ||
1060+ Commands . OpenStorageSenseFromSidebar . IsExecutable ||
1061+ options . ShowFormatDrive
10701062 } ,
10711063 new ContextMenuFlyoutItemViewModelBuilder ( Commands . OpenTerminalFromSidebar ) . Build ( ) ,
1064+ new ContextMenuFlyoutItemViewModelBuilder ( Commands . OpenStorageSenseFromSidebar ) . Build ( ) ,
1065+ new ContextMenuFlyoutItemViewModel ( )
1066+ {
1067+ Text = Strings . FormatDriveText . GetLocalizedResource ( ) ,
1068+ Command = FormatDriveCommand ,
1069+ CommandParameter = item ,
1070+ ShowItem = options . ShowFormatDrive
1071+ } ,
10721072 new ContextMenuFlyoutItemViewModel ( )
10731073 {
10741074 ItemType = ContextMenuFlyoutItemType . Separator ,
0 commit comments