mirror of
https://github.com/microsoft/PowerToys.git
synced 2024-12-13 19:19:23 +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
|
||||
{
|
||||
if (string.IsNullOrEmpty(IcoPath)) return string.Empty;
|
||||
if (IcoPath.StartsWith("data:"))
|
||||
{
|
||||
return IcoPath;
|
||||
|
@ -45,6 +45,8 @@ namespace Wox.Plugin
|
||||
{
|
||||
get
|
||||
{
|
||||
if (string.IsNullOrEmpty(IcoPath)) return string.Empty;
|
||||
|
||||
if (IcoPath.StartsWith("data:"))
|
||||
{
|
||||
return IcoPath;
|
||||
|
@ -14,6 +14,7 @@ namespace Wox.Plugin {
|
||||
{
|
||||
get
|
||||
{
|
||||
if (string.IsNullOrEmpty(IcoPath)) return string.Empty;
|
||||
if (IcoPath.StartsWith("data:"))
|
||||
{
|
||||
return IcoPath;
|
||||
|
@ -414,8 +414,7 @@ namespace Wox
|
||||
pluginAuthor.Text = "By: " + pair.Metadata.Author;
|
||||
pluginSubTitle.Text = pair.Metadata.Description;
|
||||
pluginId = pair.Metadata.ID;
|
||||
SyntaxSugars.CallOrRescueDefault(
|
||||
() => pluginIcon.Source = ImageLoader.Load(pair.Metadata.FullIcoPath));
|
||||
pluginIcon.Source = ImageLoader.Load(pair.Metadata.FullIcoPath);
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -432,7 +431,7 @@ namespace Wox
|
||||
tbOpenPluginDirecoty.Visibility = Visibility.Collapsed;
|
||||
pluginActionKeywordTitle.Visibility = Visibility.Collapsed;
|
||||
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