Skip to content

Commit 1e7ed05

Browse files
authored
Fixed right click context menu on sidebar (#1286)
1 parent af500fe commit 1e7ed05

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Files/UserControls/SidebarControl.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ private void NavigationViewLocationItem_RightTapped(object sender, RightTappedRo
133133
{
134134
Microsoft.UI.Xaml.Controls.NavigationViewItem sidebarItem = (Microsoft.UI.Xaml.Controls.NavigationViewItem)sender;
135135
var item = sidebarItem.DataContext as LocationItem;
136+
136137
if (item.IsDefaultLocation)
137138
{
138139
ShowUnpinItem = false;
@@ -161,6 +162,8 @@ private void NavigationViewDriveItem_RightTapped(object sender, RightTappedRoute
161162
Microsoft.UI.Xaml.Controls.NavigationViewItem sidebarItem = (Microsoft.UI.Xaml.Controls.NavigationViewItem)sender;
162163

163164
ShowUnpinItem = false;
165+
ShowEmptyRecycleBin = false;
166+
164167
SideBarItemContextFlyout.ShowAt(sidebarItem, e.GetPosition(sidebarItem));
165168

166169
App.rightClickedItem = sidebarItem.DataContext as DriveItem;

0 commit comments

Comments
 (0)