Fix build issue

This commit is contained in:
Jack251970 2025-04-09 16:46:13 +08:00
parent ab34e83c5e
commit 4f246460c3
2 changed files with 2 additions and 4 deletions

View file

@ -243,7 +243,7 @@ namespace Flow.Launcher.Infrastructure.Image
{
image = Image;
type = ImageType.Error;
Log.Exception($"Failed to load image file from path {path}: {ex.Message}", ex);
API.LogException(ClassName, $"Failed to load image file from path {path}: {ex.Message}", ex);
}
}
else
@ -267,7 +267,7 @@ namespace Flow.Launcher.Infrastructure.Image
{
image = Image;
type = ImageType.Error;
Log.Exception($"Failed to load SVG image from path {path}: {ex.Message}", ex);
API.LogException(ClassName, $"Failed to load SVG image from path {path}: {ex.Message}", ex);
}
}
else

View file

@ -32,8 +32,6 @@ namespace Flow.Launcher.Plugin.Program
internal static PluginInitContext Context { get; private set; }
private static readonly string ClassName = nameof(Main);
private static readonly List<Result> emptyResults = new();
private static readonly MemoryCacheOptions cacheOptions = new() { SizeLimit = 1560 };