mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-06 11:16:51 +02:00
Add plugin title translations
This commit is contained in:
@@ -831,7 +831,7 @@ namespace Wox
|
||||
PluginDirectory = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location),
|
||||
Action = _ =>
|
||||
{
|
||||
TopMostRecordStorage.Instance.Add(result);
|
||||
TopMostRecordStorage.Instance.AddOrUpdate(result);
|
||||
ShowMsg("Succeed", "", "");
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -26,7 +26,8 @@ namespace Wox.Storage
|
||||
{
|
||||
return records.Any(o => o.Value.Title == result.Title
|
||||
&& o.Value.SubTitle == result.SubTitle
|
||||
&& o.Value.PluginID == result.PluginID);
|
||||
&& o.Value.PluginID == result.PluginID
|
||||
&& o.Key == result.OriginQuery.RawQuery);
|
||||
}
|
||||
|
||||
internal void Remove(Plugin.Result result)
|
||||
@@ -38,7 +39,7 @@ namespace Wox.Storage
|
||||
}
|
||||
}
|
||||
|
||||
internal void Add(Plugin.Result result)
|
||||
internal void AddOrUpdate(Plugin.Result result)
|
||||
{
|
||||
if (records.ContainsKey(result.OriginQuery.RawQuery))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user