mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Fix everything sdk issue & a null reference issue
This commit is contained in:
parent
569cc19001
commit
e41691d10f
3 changed files with 11 additions and 4 deletions
|
|
@ -25,6 +25,12 @@
|
|||
<None Include="plugin.json">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</None>
|
||||
<None Update="EverythingSDK\x64\Everything.dll">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</None>
|
||||
<None Update="EverythingSDK\x86\Everything.dll">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</None>
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
|
|
|||
|
|
@ -8,9 +8,10 @@ namespace Flow.Launcher.Plugin.Explorer.Search.Everything
|
|||
{
|
||||
public static class EverythingApiDllImport
|
||||
{
|
||||
public static void Load(string path)
|
||||
public static void Load(string directory)
|
||||
{
|
||||
int code = LoadLibrary(Path.Combine(path, DLL));
|
||||
var path = Path.Combine(directory, DLL);
|
||||
int code = LoadLibrary(path);
|
||||
if (code == 0)
|
||||
{
|
||||
int err = Marshal.GetLastPInvokeError();
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@ namespace Flow.Launcher.Plugin.Explorer.Search
|
|||
|
||||
public int GetHashCode(Result obj)
|
||||
{
|
||||
return obj.SubTitle.GetHashCode();
|
||||
return obj.SubTitle?.GetHashCode() ?? 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -167,7 +167,7 @@ namespace Flow.Launcher.Plugin.Explorer.Search
|
|||
|
||||
var useIndexSearch = Settings.IndexSearchEngine is Settings.IndexSearchEngineOption.WindowsIndex
|
||||
&& UseWindowsIndexForDirectorySearch(locationPath);
|
||||
|
||||
|
||||
var retrievedDirectoryPath = FilesFolders.ReturnPreviousDirectoryIfIncompleteString(locationPath);
|
||||
|
||||
if (retrievedDirectoryPath.EndsWith(":\\"))
|
||||
|
|
|
|||
Loading…
Reference in a new issue