mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-06 11:16:51 +02:00
added the abitliy to opt out of pinyin in control panel and in program plug in - this give a major perf boost (and I'm guessing it is not relevant for most users)
This commit is contained in:
@@ -26,7 +26,7 @@ namespace Wox.Plugin.Program
|
||||
|
||||
private static BinaryStorage<Win32[]> _win32Storage;
|
||||
|
||||
private static Settings _settings;
|
||||
private readonly Settings _settings;
|
||||
private readonly PluginJsonStorage<Settings> _settingsStorage;
|
||||
|
||||
public Main()
|
||||
@@ -66,9 +66,9 @@ namespace Wox.Plugin.Program
|
||||
{
|
||||
lock (IndexLock)
|
||||
{
|
||||
var results1 = _win32s.AsParallel().Select(p => p.Result(query.Search, _context.API));
|
||||
var results1 = _win32s.AsParallel().Select(p => p.Result(query.Search, _context.API, _settings));
|
||||
#if !IGNORE_UWP
|
||||
var results2 = _uwps.AsParallel().Select(p => p.Result(query.Search, _context.API));
|
||||
var results2 = _uwps.AsParallel().Select(p => p.Result(query.Search, _context.API, _settings));
|
||||
#endif
|
||||
var result = results1
|
||||
#if !IGNORE_UWP
|
||||
@@ -84,7 +84,7 @@ namespace Wox.Plugin.Program
|
||||
_context = context;
|
||||
}
|
||||
|
||||
public static void IndexPrograms()
|
||||
public void IndexPrograms()
|
||||
{
|
||||
Win32[] w = { };
|
||||
#if !IGNORE_UWP
|
||||
@@ -121,7 +121,7 @@ namespace Wox.Plugin.Program
|
||||
|
||||
public Control CreateSettingPanel()
|
||||
{
|
||||
return new ProgramSetting(_context, _settings);
|
||||
return new ProgramSetting(_context, _settings, this);
|
||||
}
|
||||
|
||||
public string GetTranslatedPluginTitle()
|
||||
|
||||
Reference in New Issue
Block a user