[Peek]UserSettings load logging fix and refactor (#36111)

* UserSettings refactor to fix logging bug, properly initialise defaults etc.

* Apply lock only to code which changes shared data.
This commit is contained in:
Dave Rayment
2024-11-28 17:36:32 +00:00
committed by GitHub
parent 28304838af
commit 438ee39252
2 changed files with 51 additions and 47 deletions

View File

@@ -14,7 +14,7 @@ namespace Microsoft.PowerToys.Settings.UI.Library
{
public class SettingsUtils : ISettingsUtils
{
private const string DefaultFileName = "settings.json";
public const string DefaultFileName = "settings.json";
private const string DefaultModuleName = "";
private readonly IFile _file;
private readonly ISettingsPath _settingsPath;