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 1
1
// Copyright (c) 2023 Files Community
2
2
// Licensed under the MIT License. See the LICENSE.
3
3
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 ;
10
5
using Microsoft . UI . Xaml . Controls ;
6
+ using Microsoft . UI . Xaml . Markup ;
11
7
using Microsoft . UI . Xaml . Media ;
12
- using System ;
13
- using System . Collections . Generic ;
14
- using System . Linq ;
15
8
using static Files . App . Helpers . MenuFlyoutHelper ;
16
- using Microsoft . UI . Xaml ;
17
- using Microsoft . UI . Xaml . Markup ;
18
9
19
10
namespace Files . App . UserControls . Menus
20
11
{
@@ -62,10 +53,13 @@ private void TagItem_Click(object sender, Microsoft.UI.Xaml.RoutedEventArgs e)
62
53
}
63
54
}
64
55
65
- private void Item_Opening ( object sender , object e )
56
+ private void Item_Opening ( object ? sender , object e )
66
57
{
67
58
Opening -= Item_Opening ;
68
59
60
+ if ( SelectedItems is null )
61
+ return ;
62
+
69
63
// go through each tag and find the common one for all files
70
64
var commonFileTags = SelectedItems
71
65
. Select ( x => x . FileTags ?? Enumerable . Empty < string > ( ) )
You can’t perform that action at this time.
0 commit comments