From fbeaafa8d384229d7ae6171a15c42e9e77a089d4 Mon Sep 17 00:00:00 2001 From: Jack251970 <1160210343@qq.com> Date: Thu, 16 Oct 2025 18:47:15 +0800 Subject: [PATCH] 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. --- Flow.Launcher.Core/Plugin/PluginManager.cs | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/Flow.Launcher.Core/Plugin/PluginManager.cs b/Flow.Launcher.Core/Plugin/PluginManager.cs index a91d94b90..d3a8003c1 100644 --- a/Flow.Launcher.Core/Plugin/PluginManager.cs +++ b/Flow.Launcher.Core/Plugin/PluginManager.cs @@ -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;