Fix incorrect return state on PathIsIndexed

This commit is contained in:
Jeremy Wu 2020-05-24 19:16:10 +10:00
parent 472f4a5f49
commit df0871a924

View file

@ -1,4 +1,4 @@
using Flow.Launcher.Infrastructure.Logger;
using Flow.Launcher.Infrastructure.Logger;
using Flow.Launcher.Plugin.SharedCommands;
using Microsoft.Search.Interop;
using System;
@ -115,8 +115,7 @@ namespace Flow.Launcher.Plugin.Explorer.Search.WindowsIndex
{
var csm = new CSearchManager();
var indexManager = csm.GetCatalog("SystemIndex").GetCrawlScopeManager();
return indexManager.IncludedInCrawlScope(path) == 0;
return indexManager.IncludedInCrawlScope(path) > 0;
}
}
}