mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Merge pull request #3796 from Flow-Launcher/program_empty_query
Return results when query is empty for Program
This commit is contained in:
commit
8e6eaf728d
3 changed files with 3 additions and 4 deletions
|
|
@ -104,7 +104,7 @@ namespace Flow.Launcher.Plugin.Program
|
|||
.Where(p => HideDuplicatedWindowsAppFilter(p, uwpsDirectories))
|
||||
.Where(p => p.Enabled)
|
||||
.Select(p => p.Result(query.Search, Context.API))
|
||||
.Where(r => r?.Score > 0)
|
||||
.Where(r => string.IsNullOrEmpty(query.Search) || r?.Score > 0)
|
||||
.ToList();
|
||||
}
|
||||
catch (OperationCanceledException)
|
||||
|
|
|
|||
|
|
@ -424,7 +424,7 @@ namespace Flow.Launcher.Plugin.Program.Programs
|
|||
}
|
||||
}
|
||||
|
||||
if (!matchResult.IsSearchPrecisionScoreMet())
|
||||
if (!matchResult.IsSearchPrecisionScoreMet() && !string.IsNullOrEmpty(query))
|
||||
return null;
|
||||
|
||||
var result = new Result
|
||||
|
|
@ -468,7 +468,6 @@ namespace Flow.Launcher.Plugin.Program.Programs
|
|||
}
|
||||
};
|
||||
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -136,7 +136,7 @@ namespace Flow.Launcher.Plugin.Program.Programs
|
|||
|
||||
List<string> candidates = new List<string>();
|
||||
|
||||
if (!matchResult.IsSearchPrecisionScoreMet())
|
||||
if (!matchResult.IsSearchPrecisionScoreMet() && !string.IsNullOrEmpty(query))
|
||||
{
|
||||
if (ExecutableName != null) // only lnk program will need this one
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue