fix build for settings util

This commit is contained in:
vanzue
2025-12-10 12:16:38 +08:00
parent a5fc626e8e
commit bb4287a075
2 changed files with 2 additions and 2 deletions

View File

@@ -72,7 +72,7 @@ public sealed class AwakeService : ModuleServiceBase, IAwakeService
{
cancellationToken.ThrowIfCancellationRequested();
var settingsUtils = new SettingsUtils();
var settingsUtils = SettingsUtils.Default;
var settings = settingsUtils.GetSettingsOrDefault<AwakeSettings>(AwakeSettings.ModuleName);
mutateSettings(settings);

View File

@@ -52,7 +52,7 @@ public sealed class ColorPickerService : ModuleServiceBase, IColorPickerService
using var stream = File.OpenRead(historyPath);
var colors = JsonSerializer.Deserialize(stream, ColorPickerServiceJsonContext.Default.ListString) ?? new List<string>();
var settingsUtils = new SettingsUtils();
var settingsUtils = SettingsUtils.Default;
var settings = settingsUtils.GetSettingsOrDefault<ColorPickerSettings>(ColorPickerSettings.ModuleName);
var results = new List<SavedColor>(colors.Count);