mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-02-24 04:00:02 +01:00
fix
This commit is contained in:
@@ -42,11 +42,4 @@ public sealed class Bookmarks
|
||||
|
||||
File.WriteAllText(BookmarksCommandProvider.StateJsonPath(), jsonString);
|
||||
}
|
||||
|
||||
public enum BookmarkType
|
||||
{
|
||||
File,
|
||||
Url,
|
||||
Folder,
|
||||
}
|
||||
}
|
||||
|
||||
@@ -37,10 +37,7 @@ public sealed partial class ShellCommand : InvokableCommand
|
||||
BookmarkType = type;
|
||||
BookmarkValue = value;
|
||||
Icon = IconHelper.GetIconByType(type);
|
||||
|
||||
Name = name;
|
||||
|
||||
// Icon = new IconInfo(IconFromUrl(Value, type));
|
||||
}
|
||||
|
||||
public override CommandResult Invoke()
|
||||
|
||||
@@ -64,12 +64,10 @@ public static class IconHelper
|
||||
return new IconInfo(faviconUrl);
|
||||
}
|
||||
}
|
||||
catch (UriFormatException)
|
||||
catch (UriFormatException ex)
|
||||
{
|
||||
// return "🔗";
|
||||
ExtensionHost.LogMessage(new LogMessage() { Message = $"Create Icon failed. {ex}: {ex.Message}" });
|
||||
}
|
||||
|
||||
return GetIconByType(bookmarkType);
|
||||
}
|
||||
|
||||
return GetIconByType(bookmarkType);
|
||||
|
||||
Reference in New Issue
Block a user