File tree Expand file tree Collapse file tree 1 file changed +6
-12
lines changed Expand file tree Collapse file tree 1 file changed +6
-12
lines changed Original file line number Diff line number Diff line change 11// Copyright (c) 2023 Files Community
22// Licensed under the MIT License. See the LICENSE.
33
4- using CommunityToolkit . Mvvm . DependencyInjection ;
5- using Files . App . Utils ;
6- using Files . App . Helpers ;
7- using Files . Core . Services . Settings ;
8- using Files . Core . ViewModels . FileTags ;
9- using Files . Shared . Extensions ;
4+ using Microsoft . UI . Xaml ;
105using Microsoft . UI . Xaml . Controls ;
6+ using Microsoft . UI . Xaml . Markup ;
117using Microsoft . UI . Xaml . Media ;
12- using System ;
13- using System . Collections . Generic ;
14- using System . Linq ;
158using static Files . App . Helpers . MenuFlyoutHelper ;
16- using Microsoft . UI . Xaml ;
17- using Microsoft . UI . Xaml . Markup ;
189
1910namespace Files . App . UserControls . Menus
2011{
@@ -62,10 +53,13 @@ private void TagItem_Click(object sender, Microsoft.UI.Xaml.RoutedEventArgs e)
6253 }
6354 }
6455
65- private void Item_Opening ( object sender , object e )
56+ private void Item_Opening ( object ? sender , object e )
6657 {
6758 Opening -= Item_Opening ;
6859
60+ if ( SelectedItems is null )
61+ return ;
62+
6963 // go through each tag and find the common one for all files
7064 var commonFileTags = SelectedItems
7165 . Select ( x => x . FileTags ?? Enumerable . Empty < string > ( ) )
You can’t perform that action at this time.
0 commit comments