File tree Expand file tree Collapse file tree 1 file changed +16
-25
lines changed Expand file tree Collapse file tree 1 file changed +16
-25
lines changed Original file line number Diff line number Diff line change @@ -202,36 +202,27 @@ private void NavigationViewLocationItem_RightTapped(object sender, RightTappedRo
202
202
Microsoft . UI . Xaml . Controls . NavigationViewItem sidebarItem = ( Microsoft . UI . Xaml . Controls . NavigationViewItem ) sender ;
203
203
var item = sidebarItem . DataContext as LocationItem ;
204
204
205
- if ( item . IsDefaultLocation )
206
- {
207
- ShowUnpinItem = false ;
208
- }
209
- else
210
- {
211
- ShowUnpinItem = true ;
212
- }
213
-
214
- if ( item . Path . Equals ( App . AppSettings . RecycleBinPath , StringComparison . OrdinalIgnoreCase ) )
215
- {
216
- RecycleBinItemRightTapped ? . Invoke ( this , EventArgs . Empty ) ;
217
-
218
- ShowEmptyRecycleBin = true ;
219
- ShowUnpinItem = true ;
220
- ShowProperties = false ;
221
- }
222
- else
223
- {
224
- ShowEmptyRecycleBin = false ;
225
- // Set to true if properties should be displayed for pinned folders
226
- ShowProperties = false ;
227
- }
205
+ ShowEmptyRecycleBin = false ;
206
+ ShowUnpinItem = true ;
207
+ ShowProperties = true ;
208
+ ShowEjectDevice = false ;
228
209
229
- // Additional check needed because ShowProperties is set to true if not recycle bin
230
210
if ( item . IsDefaultLocation )
231
211
{
232
212
ShowProperties = false ;
233
- }
234
213
214
+ if ( item . Path . Equals ( App . AppSettings . RecycleBinPath , StringComparison . OrdinalIgnoreCase ) )
215
+ {
216
+ RecycleBinItemRightTapped ? . Invoke ( this , EventArgs . Empty ) ;
217
+
218
+ ShowEmptyRecycleBin = true ;
219
+ }
220
+ else
221
+ {
222
+ ShowUnpinItem = false ;
223
+ }
224
+ }
225
+
235
226
SideBarItemContextFlyout . ShowAt ( sidebarItem , e . GetPosition ( sidebarItem ) ) ;
236
227
App . RightClickedItem = item ;
237
228
}
You can’t perform that action at this time.
0 commit comments