From ad6ca65d4b3da20bd302425edac69515226c3d98 Mon Sep 17 00:00:00 2001 From: Alekhya Reddy Date: Thu, 2 Apr 2020 17:49:43 -0700 Subject: [PATCH] windows indexer plugin is working --- .../launcher/Plugins/Wox.Plugin.Indexer/Main.cs | 2 +- .../SearchHelper/WindowsSearchAPI.cs | 10 ++++++---- .../Wox.Plugin.Indexer/Wox.Plugin.Indexer.csproj | 13 ++++++++++++- src/modules/launcher/Wox/Wox.csproj | 2 ++ 4 files changed, 21 insertions(+), 6 deletions(-) diff --git a/src/modules/launcher/Plugins/Wox.Plugin.Indexer/Main.cs b/src/modules/launcher/Plugins/Wox.Plugin.Indexer/Main.cs index 652af40c40..8d6af797e9 100644 --- a/src/modules/launcher/Plugins/Wox.Plugin.Indexer/Main.cs +++ b/src/modules/launcher/Plugins/Wox.Plugin.Indexer/Main.cs @@ -92,7 +92,7 @@ namespace Wox.Plugin.Indexer results.Add(new Result { // TODO: Localize the string - Title = "Windows indexer plugin is not running", + Title = ex.ToString(), IcoPath = "Images\\WindowsIndexerImg.bmp" }); } diff --git a/src/modules/launcher/Plugins/Wox.Plugin.Indexer/SearchHelper/WindowsSearchAPI.cs b/src/modules/launcher/Plugins/Wox.Plugin.Indexer/SearchHelper/WindowsSearchAPI.cs index 64875595a1..23dc200635 100644 --- a/src/modules/launcher/Plugins/Wox.Plugin.Indexer/SearchHelper/WindowsSearchAPI.cs +++ b/src/modules/launcher/Plugins/Wox.Plugin.Indexer/SearchHelper/WindowsSearchAPI.cs @@ -32,10 +32,12 @@ namespace Wox.Plugin.Indexer.SearchHelper while (WDSResults.Read()) { // col 0 is our path in display format - Console.WriteLine("{0}", WDSResults.GetString(0)); - var result = new SearchResult { Path = WDSResults.GetString(0) }; - - yield return result; + if (WDSResults.GetString(0) != null) + { + //Console.WriteLine("{0}", WDSResults.GetString(0)); + var result = new SearchResult { Path = WDSResults.GetString(0) }; + yield return result; + } } } diff --git a/src/modules/launcher/Plugins/Wox.Plugin.Indexer/Wox.Plugin.Indexer.csproj b/src/modules/launcher/Plugins/Wox.Plugin.Indexer/Wox.Plugin.Indexer.csproj index 0631ed280b..eb9676e683 100644 --- a/src/modules/launcher/Plugins/Wox.Plugin.Indexer/Wox.Plugin.Indexer.csproj +++ b/src/modules/launcher/Plugins/Wox.Plugin.Indexer/Wox.Plugin.Indexer.csproj @@ -1,7 +1,14 @@ - + netcoreapp3.1 + {F8B870EB-D5F5-45BA-9CF7-A5C459818820} + Properties + Wox.Plugin.Indexer + Wox.Plugin.Indexer + true + false + false x64 @@ -48,4 +55,8 @@ + + + + diff --git a/src/modules/launcher/Wox/Wox.csproj b/src/modules/launcher/Wox/Wox.csproj index a67357ac21..fc0cd94bd9 100644 --- a/src/modules/launcher/Wox/Wox.csproj +++ b/src/modules/launcher/Wox/Wox.csproj @@ -68,9 +68,11 @@ runtime; build; native; contentfiles; analyzers; buildtransitive + +