mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Move copying to appropiate sections
This commit is contained in:
parent
0a9eb09d7e
commit
62a26ff0ca
1 changed files with 2 additions and 14 deletions
|
|
@ -662,19 +662,7 @@ namespace Flow.Launcher.ViewModel
|
||||||
if (selected == lastContextMenuResult)
|
if (selected == lastContextMenuResult)
|
||||||
{
|
{
|
||||||
// Use copy to keep the original results unchanged
|
// Use copy to keep the original results unchanged
|
||||||
results = lastContextMenuResults.ConvertAll(result => new Result
|
results = lastContextMenuResults.ToList();
|
||||||
{
|
|
||||||
Title = result.Title,
|
|
||||||
SubTitle = result.SubTitle,
|
|
||||||
IcoPath = result.IcoPath,
|
|
||||||
PluginDirectory = result.PluginDirectory,
|
|
||||||
Action = result.Action,
|
|
||||||
ContextData = result.ContextData,
|
|
||||||
Glyph = result.Glyph,
|
|
||||||
OriginQuery = result.OriginQuery,
|
|
||||||
Score = result.Score,
|
|
||||||
AsyncAction = result.AsyncAction,
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
@ -689,7 +677,7 @@ namespace Flow.Launcher.ViewModel
|
||||||
|
|
||||||
if (!string.IsNullOrEmpty(query))
|
if (!string.IsNullOrEmpty(query))
|
||||||
{
|
{
|
||||||
var filtered = results.Where
|
var filtered = results.Select(x => x.Clone()).Where
|
||||||
(
|
(
|
||||||
r =>
|
r =>
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue