This commit is contained in:
Yu Leng (from Dev Box)
2025-04-24 19:41:14 +08:00
parent 3db59a30b9
commit d220051419
3 changed files with 2 additions and 14 deletions

View File

@@ -42,11 +42,4 @@ public sealed class Bookmarks
File.WriteAllText(BookmarksCommandProvider.StateJsonPath(), jsonString);
}
public enum BookmarkType
{
File,
Url,
Folder,
}
}

View File

@@ -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()

View File

@@ -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);