mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-04 10:16:24 +02:00
[New Utility]Mouse Without Borders
* Integrate Mouse Without Borders into PowerToys --------- Co-authored-by: Jaime Bernardo <jaime@janeasystems.com>
This commit is contained in:
committed by
Jaime Bernardo
parent
a0b9af039d
commit
29eebe16a4
@@ -150,7 +150,9 @@ namespace Microsoft.PowerToys.Settings.UI.Library
|
||||
// This, while not totally ideal, does work around the problem by trimming the end.
|
||||
// The file itself did write the content correctly but something is off with the actual end of the file, hence the 0x00 bug
|
||||
var jsonSettingsString = _file.ReadAllText(_settingsPath.GetSettingsPath(powertoyFolderName, fileName)).Trim('\0');
|
||||
return JsonSerializer.Deserialize<T>(jsonSettingsString);
|
||||
|
||||
var options = new JsonSerializerOptions { MaxDepth = 0, IncludeFields = true };
|
||||
return JsonSerializer.Deserialize<T>(jsonSettingsString, options);
|
||||
}
|
||||
|
||||
// Save settings to a json file.
|
||||
|
||||
Reference in New Issue
Block a user