mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Add direct call to Everything API from ResultManager
Obviously this is stupid because we forcefully tied Explorer plugin to Everything. This needs more thinking, but is a good enough for now solution to test what works and doesnt work
This commit is contained in:
parent
6869aeea83
commit
ad8dffe468
1 changed files with 4 additions and 0 deletions
|
|
@ -7,6 +7,7 @@ using System.IO;
|
|||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows;
|
||||
using Flow.Launcher.Plugin.Explorer.Search.Everything;
|
||||
|
||||
namespace Flow.Launcher.Plugin.Explorer.Search
|
||||
{
|
||||
|
|
@ -249,6 +250,7 @@ namespace Flow.Launcher.Plugin.Explorer.Search
|
|||
WorkingDirectory = Settings.UseLocationAsWorkingDir ? Path.GetDirectoryName(filePath) : string.Empty,
|
||||
Verb = "runas",
|
||||
});
|
||||
EverythingApiDllImport.Everything_IncRunCountFromFileName(filePath);
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
|
|
@ -259,10 +261,12 @@ namespace Flow.Launcher.Plugin.Explorer.Search
|
|||
else if (c.SpecialKeyState.CtrlPressed)
|
||||
{
|
||||
Context.API.OpenDirectory(Path.GetDirectoryName(filePath), filePath);
|
||||
EverythingApiDllImport.Everything_IncRunCountFromFileName(filePath);
|
||||
}
|
||||
else
|
||||
{
|
||||
FilesFolders.OpenPath(filePath);
|
||||
EverythingApiDllImport.Everything_IncRunCountFromFileName(filePath);
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
|
|
|
|||
Loading…
Reference in a new issue