From 4f246460c353cec83a7b8fbfde31c26eba159219 Mon Sep 17 00:00:00 2001 From: Jack251970 <1160210343@qq.com> Date: Wed, 9 Apr 2025 16:46:13 +0800 Subject: [PATCH] Fix build issue --- Flow.Launcher.Infrastructure/Image/ImageLoader.cs | 4 ++-- Plugins/Flow.Launcher.Plugin.Program/Main.cs | 2 -- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/Flow.Launcher.Infrastructure/Image/ImageLoader.cs b/Flow.Launcher.Infrastructure/Image/ImageLoader.cs index be3609956..cd5a4cf71 100644 --- a/Flow.Launcher.Infrastructure/Image/ImageLoader.cs +++ b/Flow.Launcher.Infrastructure/Image/ImageLoader.cs @@ -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 diff --git a/Plugins/Flow.Launcher.Plugin.Program/Main.cs b/Plugins/Flow.Launcher.Plugin.Program/Main.cs index dca07d085..16b6bcab2 100644 --- a/Plugins/Flow.Launcher.Plugin.Program/Main.cs +++ b/Plugins/Flow.Launcher.Plugin.Program/Main.cs @@ -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 emptyResults = new(); private static readonly MemoryCacheOptions cacheOptions = new() { SizeLimit = 1560 };