1
1
using System ;
2
- using Flow . Launcher . Plugin . Explorer . Search . WindowsIndex ;
3
2
using System . Collections . Generic ;
4
3
using System . Diagnostics ;
5
- using System . Diagnostics . CodeAnalysis ;
6
- using System . Linq ;
7
4
using System . Runtime . CompilerServices ;
8
5
using System . Threading ;
9
6
using System . Threading . Tasks ;
10
7
using Flow . Launcher . Plugin . Explorer . Exceptions ;
11
- using Flow . Launcher . Plugin . Explorer . Search . Everything . Exceptions ;
12
8
using Flow . Launcher . Plugin . Explorer . Search . IProvider ;
13
9
14
10
namespace Flow . Launcher . Plugin . Explorer . Search . Everything
@@ -31,12 +27,12 @@ private async ValueTask ThrowIfEverythingNotAvailableAsync(CancellationToken tok
31
27
Enum . GetName ( Settings . IndexSearchEngineOption . Everything ) ! ,
32
28
Main . Context . API . GetTranslation ( "flowlauncher_plugin_everything_click_to_launch_or_install" ) ,
33
29
Main . Context . API . GetTranslation ( "flowlauncher_plugin_everything_is_not_running" ) ,
34
- ClickToInstallEverything )
30
+ ClickToInstallEverythingAsync )
35
31
{
36
32
ErrorIcon = Constants . EverythingErrorImagePath
37
33
} ;
38
34
}
39
- catch ( DllNotFoundException e )
35
+ catch ( DllNotFoundException )
40
36
{
41
37
throw new EngineNotAvailableException (
42
38
Enum . GetName ( Settings . IndexSearchEngineOption . Everything ) ! ,
@@ -47,7 +43,7 @@ private async ValueTask ThrowIfEverythingNotAvailableAsync(CancellationToken tok
47
43
} ;
48
44
}
49
45
}
50
- private async ValueTask < bool > ClickToInstallEverything ( ActionContext _ )
46
+ private async ValueTask < bool > ClickToInstallEverythingAsync ( ActionContext _ )
51
47
{
52
48
var installedPath = await EverythingDownloadHelper . PromptDownloadIfNotInstallAsync ( Settings . EverythingInstalledPath , Main . Context . API ) ;
53
49
if ( installedPath == null )
@@ -75,7 +71,7 @@ public async IAsyncEnumerable<SearchResult> ContentSearchAsync(string plainSearc
75
71
await ThrowIfEverythingNotAvailableAsync ( token ) ;
76
72
if ( ! Settings . EnableEverythingContentSearch )
77
73
{
78
- throw new EngineNotAvailableException ( Enum . GetName ( Settings . IndexSearchEngineOption . Everything ) ,
74
+ throw new EngineNotAvailableException ( Enum . GetName ( Settings . IndexSearchEngineOption . Everything ) ! ,
79
75
"Click to Enable Everything Content Search (only applicable to Everything 1.5+ with indexed content)" ,
80
76
"Everything Content Search is not enabled." ,
81
77
_ =>
0 commit comments