Fix settings UpgradeConfiguration code path (#6839)

This commit is contained in:
Arjun Balgovind
2020-09-25 13:59:14 -07:00
committed by GitHub
parent 9c32e32097
commit de870c843e

View File

@@ -72,7 +72,7 @@ namespace Microsoft.PowerToys.Settings.UI.Lib
T deserializedSettings = GetFile<T>(powertoy, fileName); T deserializedSettings = GetFile<T>(powertoy, fileName);
// IF the file needs to be modified, to save the new configurations accordingly. // IF the file needs to be modified, to save the new configurations accordingly.
if (!deserializedSettings.UpgradeSettingsConfiguration()) if (deserializedSettings.UpgradeSettingsConfiguration())
{ {
SaveSettings(deserializedSettings.ToJsonString(), powertoy, fileName); SaveSettings(deserializedSettings.ToJsonString(), powertoy, fileName);
} }