mirror of
https://github.com/microsoft/PowerToys.git
synced 2024-12-14 03:37:10 +08:00
display plugin icons in 'activate plugin' query
This commit is contained in:
parent
217a7a34f8
commit
b489e54da4
@ -35,7 +35,7 @@ namespace Wox.Plugin.SystemPlugins
|
|||||||
Title = metadata.ActionKeyword,
|
Title = metadata.ActionKeyword,
|
||||||
SubTitle = string.Format("Activate {0} plugin", metadata.Name),
|
SubTitle = string.Format("Activate {0} plugin", metadata.Name),
|
||||||
Score = 100,
|
Score = 100,
|
||||||
IcoPath = "Images/work.png",
|
IcoPath = metadata.FullIcoPath,
|
||||||
Action = (c) =>
|
Action = (c) =>
|
||||||
{
|
{
|
||||||
context.API.ChangeQuery(metadataCopy.ActionKeyword + " ");
|
context.API.ChangeQuery(metadataCopy.ActionKeyword + " ");
|
||||||
|
@ -52,7 +52,9 @@ namespace Wox.Plugin
|
|||||||
{
|
{
|
||||||
get
|
get
|
||||||
{
|
{
|
||||||
if (string.IsNullOrEmpty(IcoPath)) return string.Empty;
|
// Return the default icon if IcoPath is empty
|
||||||
|
if (string.IsNullOrEmpty(IcoPath))
|
||||||
|
return Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Images\\work.png");
|
||||||
|
|
||||||
if (IcoPath.StartsWith("data:"))
|
if (IcoPath.StartsWith("data:"))
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user