mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-12-15 03:07:56 +01:00
fix build for settings util
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user