mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-01-06 03:07:54 +08:00
Fix an issue when switch between plugin with icons and without icons.
This commit is contained in:
parent
39aadaa220
commit
4f8c6e64fb
@ -19,6 +19,7 @@ namespace Wox.Plugin.SystemPlugins
|
|||||||
{
|
{
|
||||||
get
|
get
|
||||||
{
|
{
|
||||||
|
if (string.IsNullOrEmpty(IcoPath)) return string.Empty;
|
||||||
if (IcoPath.StartsWith("data:"))
|
if (IcoPath.StartsWith("data:"))
|
||||||
{
|
{
|
||||||
return IcoPath;
|
return IcoPath;
|
||||||
|
@ -45,6 +45,8 @@ namespace Wox.Plugin
|
|||||||
{
|
{
|
||||||
get
|
get
|
||||||
{
|
{
|
||||||
|
if (string.IsNullOrEmpty(IcoPath)) return string.Empty;
|
||||||
|
|
||||||
if (IcoPath.StartsWith("data:"))
|
if (IcoPath.StartsWith("data:"))
|
||||||
{
|
{
|
||||||
return IcoPath;
|
return IcoPath;
|
||||||
|
@ -14,6 +14,7 @@ namespace Wox.Plugin {
|
|||||||
{
|
{
|
||||||
get
|
get
|
||||||
{
|
{
|
||||||
|
if (string.IsNullOrEmpty(IcoPath)) return string.Empty;
|
||||||
if (IcoPath.StartsWith("data:"))
|
if (IcoPath.StartsWith("data:"))
|
||||||
{
|
{
|
||||||
return IcoPath;
|
return IcoPath;
|
||||||
|
@ -414,8 +414,7 @@ namespace Wox
|
|||||||
pluginAuthor.Text = "By: " + pair.Metadata.Author;
|
pluginAuthor.Text = "By: " + pair.Metadata.Author;
|
||||||
pluginSubTitle.Text = pair.Metadata.Description;
|
pluginSubTitle.Text = pair.Metadata.Description;
|
||||||
pluginId = pair.Metadata.ID;
|
pluginId = pair.Metadata.ID;
|
||||||
SyntaxSugars.CallOrRescueDefault(
|
pluginIcon.Source = ImageLoader.Load(pair.Metadata.FullIcoPath);
|
||||||
() => pluginIcon.Source = ImageLoader.Load(pair.Metadata.FullIcoPath));
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -432,7 +431,7 @@ namespace Wox
|
|||||||
tbOpenPluginDirecoty.Visibility = Visibility.Collapsed;
|
tbOpenPluginDirecoty.Visibility = Visibility.Collapsed;
|
||||||
pluginActionKeywordTitle.Visibility = Visibility.Collapsed;
|
pluginActionKeywordTitle.Visibility = Visibility.Collapsed;
|
||||||
pluginTitle.Cursor = Cursors.Arrow;
|
pluginTitle.Cursor = Cursors.Arrow;
|
||||||
SyntaxSugars.CallOrRescueDefault(() => pluginIcon.Source = ImageLoader.Load(sys.FullIcoPath));
|
pluginIcon.Source = ImageLoader.Load(sys.FullIcoPath);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user