mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-01-18 14:41:21 +08:00
commit
125c5523e6
@ -209,7 +209,7 @@ namespace Wox.Plugin.PluginManagement
|
||||
{
|
||||
Title = plugin.Name,
|
||||
SubTitle = plugin.Description,
|
||||
IcoPath = "Images\\plugin.png",
|
||||
IcoPath = plugin.FullIcoPath,
|
||||
Action = e =>
|
||||
{
|
||||
UnInstalledPlugins(plugin);
|
||||
@ -239,7 +239,7 @@ namespace Wox.Plugin.PluginManagement
|
||||
{
|
||||
Title = plugin.Name + " - " + plugin.ActionKeyword,
|
||||
SubTitle = plugin.Description,
|
||||
IcoPath = "Images\\plugin.png"
|
||||
IcoPath = plugin.FullIcoPath
|
||||
});
|
||||
}
|
||||
return results;
|
||||
|
@ -35,7 +35,7 @@ namespace Wox.Plugin.SystemPlugins
|
||||
Title = metadata.ActionKeyword,
|
||||
SubTitle = string.Format("Activate {0} plugin", metadata.Name),
|
||||
Score = 100,
|
||||
IcoPath = "Images/work.png",
|
||||
IcoPath = metadata.FullIcoPath,
|
||||
Action = (c) =>
|
||||
{
|
||||
context.API.ChangeQuery(metadataCopy.ActionKeyword + " ");
|
||||
|
@ -52,7 +52,9 @@ namespace Wox.Plugin
|
||||
{
|
||||
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:"))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user