Skip to content

Commit

Permalink
[create-pull-request] automated change
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] authored Mar 23, 2024
1 parent 5e38997 commit 16af33c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/MauiSettings.Example/ViewModels/MainPageViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ async Task LoadSettingsFromDevice()
await SettingsApp.LoadSettingsAsync(key: App.Hash);
LoadSettings();
}
catch(Exception)
catch (Exception)
{
// Throus if the key missmatches
}
Expand Down
10 changes: 5 additions & 5 deletions src/MauiSettings/MauiSettingsGeneric.cs
Original file line number Diff line number Diff line change
Expand Up @@ -74,13 +74,13 @@ public static Task LoadSettingAsync<T>(Expression<Func<SO, T>> value, string? ke
{
await LoadObjectSettingAsync(SettingsObject, value, key: key);
});

public static Task LoadSecureSettingAsync<T>(Expression<Func<SO, T>> value, string? key = null)
=> Task.Run(async delegate
{
await LoadSecureObjectSettingAsync(SettingsObject, value, key: key);
});


public void LoadObjectSettings() => LoadSettings(this);

Expand Down Expand Up @@ -849,9 +849,9 @@ List<MauiSettingAttribute> settingBaseAttributes
return null;
}
settingBaseAttribute = settingBaseAttributes?.FirstOrDefault();
//}
//if (settingsObjectInfo.Info is not null)
//{
//}
//if (settingsObjectInfo.Info is not null)
//{
settingsInfo.Name = MauiSettingNameFormater.GetFullSettingName(settingsObjectInfo.OrignalSettingsObject.GetType(), settingsObjectInfo.Info, settingBaseAttribute);
settingsInfo.SettingsType = (settingsInfo.SettingsType = MauiSettingsObjectHelper.GetSettingType(settingsObjectInfo.Info));
settingsInfo.Default = MauiSettingsObjectHelper.GetDefaultValue(settingBaseAttribute, settingsInfo.SettingsType);
Expand Down

0 comments on commit 16af33c

Please sign in to comment.