Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using System;
using System.IO;
using SkiaSharp;

Check warning on line 3 in Plugins/Flow.Launcher.Plugin.BrowserBookmark/Helper/FaviconHelper.cs

View workflow job for this annotation

GitHub Actions / Check Spelling

`Skia` is not a recognized word. (unrecognized-spelling)
using Svg.Skia;

Check warning on line 4 in Plugins/Flow.Launcher.Plugin.BrowserBookmark/Helper/FaviconHelper.cs

View workflow job for this annotation

GitHub Actions / Check Spelling

`Skia` is not a recognized word. (unrecognized-spelling)

Check warning on line 4 in Plugins/Flow.Launcher.Plugin.BrowserBookmark/Helper/FaviconHelper.cs

View workflow job for this annotation

GitHub Actions / Check Spelling

`Skia` is not a recognized word. (unrecognized-spelling)

namespace Flow.Launcher.Plugin.BrowserBookmark.Helper;

Expand All @@ -12,7 +12,7 @@
public static void LoadFaviconsFromDb(string faviconCacheDir, string dbPath, Action<string> loadAction)
{
// Use a copy to avoid lock issues with the original file
var tempDbPath = Path.Combine(faviconCacheDir, $"tempfavicons_{Guid.NewGuid()}.db");

Check warning on line 15 in Plugins/Flow.Launcher.Plugin.BrowserBookmark/Helper/FaviconHelper.cs

View workflow job for this annotation

GitHub Actions / Check Spelling

`tempfavicons` is not a recognized word. (unrecognized-spelling)

try
{
Expand Down Expand Up @@ -106,12 +106,13 @@
{
try
{
using (var image = SKImage.FromBitmap(bitmap))
using (var webp = image.Encode(SKEncodedImageFormat.Webp, 65))
{
if (webp != null)
return webp.ToArray();
}
using var image = SKImage.FromBitmap(bitmap);
if (image is null)
return null;

using var webp = image.Encode(SKEncodedImageFormat.Webp, 65);
if (webp != null)
return webp.ToArray();
}
finally
{
Expand Down
Loading