File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed
src/Files.App/Actions/Start Expand file tree Collapse file tree 1 file changed +2
-6
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
4
using Files . App . Commands ;
6
5
using Files . App . Contexts ;
7
- using Files . App . Extensions ;
8
- using Files . App . Filesystem ;
9
- using System . Threading . Tasks ;
10
6
11
7
namespace Files . App . Actions
12
8
{
@@ -25,11 +21,11 @@ public async Task ExecuteAsync()
25
21
if ( context . SelectedItems . Count > 0 )
26
22
{
27
23
foreach ( ListedItem listedItem in context . ShellPage ? . SlimContentPage . SelectedItems )
28
- await App . SecondaryTileHelper . TryPinFolderAsync ( listedItem . ItemPath , listedItem . Name ) ;
24
+ await App . SecondaryTileHelper . UnpinFromStartAsync ( listedItem . ItemPath ) ;
29
25
}
30
26
else
31
27
{
32
- await App . SecondaryTileHelper . TryPinFolderAsync ( context . ShellPage ? . FilesystemViewModel . CurrentFolder . ItemPath , context . ShellPage ? . FilesystemViewModel . CurrentFolder . Name ) ;
28
+ await App . SecondaryTileHelper . UnpinFromStartAsync ( context . ShellPage ? . FilesystemViewModel . CurrentFolder . ItemPath ) ;
33
29
}
34
30
}
35
31
}
You can’t perform that action at this time.
0 commit comments