Skip to content
This repository was archived by the owner on Jul 18, 2023. It is now read-only.

Commit ab42600

Browse files
committed
update fast sort error message
1 parent b6bffb8 commit ab42600

3 files changed

Lines changed: 4 additions & 3 deletions

File tree

Everything/EverythingAPI.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using System;
1+
using System;
22
using System.Collections.Generic;
33
using System.Runtime.InteropServices;
44
using System.Text;
@@ -128,7 +128,7 @@ public List<SearchResult> Search(string keyWord, CancellationToken token, SortOp
128128
CheckAndThrowExceptionOnError();
129129

130130
if(!fastSortOptionEnabled)
131-
throw new InvalidOperationException("The Sort Option is not Fast Sort, it may take a long time to finish the query");
131+
throw new InvalidOperationException(Main._context.API.GetTranslation("flowlauncher_plugin_everything_fastsort_error"));
132132

133133
EverythingApiDllImport.Everything_SetSort(sortOption);
134134

Languages/en.xaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
<system:String x:Key="flowlauncher_plugin_everything_is_not_running">Everything Service is not running</system:String>
66
<system:String x:Key="flowlauncher_plugin_everything_query_error">Error while querying Everything</system:String>
7+
<system:String x:Key="flowlauncher_plugin_everything_fastsort_error">Fast Sort option not enabled in Flow's Everything plugin settings, it may take a long time to finish the query</system:String>
78
<system:String x:Key="flowlauncher_plugin_everything_copied">Copied</system:String>
89
<system:String x:Key="flowlauncher_plugin_everything_canot_start">Can’t start {0}</system:String>
910
<system:String x:Key="flowlauncher_plugin_everything_open_containing_folder">Open parent folder</system:String>

Main.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public class Main : IPlugin, ISettingProvider, IPluginI18n, IContextMenu
1919
public const string DLL = "Everything.dll";
2020
private readonly IEverythingApi _api = new EverythingApi();
2121

22-
private PluginInitContext _context;
22+
internal static PluginInitContext _context;
2323

2424
private Settings _settings;
2525
private CancellationTokenSource _cancellationTokenSource;

0 commit comments

Comments
 (0)