Remove Score = -100 from result objects in PluginManager

Removed the `Score = -100` property from multiple result objects
in `PluginManager.cs` to simplify the code and improve clarity.
Adjusted the formatting and structure to ensure proper syntax
and maintain code consistency. This includes changes to result
objects that handle re-querying and exception handling.
This commit is contained in:
Jack251970 2025-10-16 18:47:15 +08:00
parent 68454a8a6e
commit fbeaafa8d3

View file

@ -411,8 +411,7 @@ namespace Flow.Launcher.Core.Plugin
{
PublicApi.Instance.ReQuery();
return false;
},
Score = -100
}
};
results.Add(r);
return results;
@ -450,8 +449,7 @@ namespace Flow.Launcher.Core.Plugin
ActionKeywordAssigned = query.ActionKeyword,
PluginID = metadata.ID,
OriginQuery = query,
Action = _ => { throw new FlowPluginException(metadata, e);},
Score = -100
Action = _ => { throw new FlowPluginException(metadata, e);}
};
results.Add(r);
}
@ -479,8 +477,7 @@ namespace Flow.Launcher.Core.Plugin
{
PublicApi.Instance.ReQuery();
return false;
},
Score = -100
}
};
results.Add(r);
return results;