Fix FL settings issue

This commit is contained in:
Jack251970 2025-03-13 19:30:51 +08:00
parent bc0cde289c
commit 01e8be779c

View file

@ -2,7 +2,7 @@
using System.Linq; using System.Linq;
using CommunityToolkit.Mvvm.DependencyInjection; using CommunityToolkit.Mvvm.DependencyInjection;
using Flow.Launcher.Core.Resource; using Flow.Launcher.Core.Resource;
using Flow.Launcher.Infrastructure.UserSettings; using FLSettings = Flow.Launcher.Infrastructure.UserSettings.Settings;
namespace Flow.Launcher.Plugin.Sys namespace Flow.Launcher.Plugin.Sys
{ {
@ -10,7 +10,7 @@ namespace Flow.Launcher.Plugin.Sys
{ {
public const string Keyword = "fltheme"; public const string Keyword = "fltheme";
private readonly Settings _settings; private readonly FLSettings _settings;
private readonly Theme _theme; private readonly Theme _theme;
private readonly PluginInitContext _context; private readonly PluginInitContext _context;
@ -43,7 +43,7 @@ namespace Flow.Launcher.Plugin.Sys
{ {
_context = context; _context = context;
_theme = Ioc.Default.GetRequiredService<Theme>(); _theme = Ioc.Default.GetRequiredService<Theme>();
_settings = Ioc.Default.GetRequiredService<Settings>(); _settings = Ioc.Default.GetRequiredService<FLSettings>();
} }
public List<Result> Query(Query query) public List<Result> Query(Query query)