diff --git a/src/MauiSettings.Example/ViewModels/MainPageViewModel.cs b/src/MauiSettings.Example/ViewModels/MainPageViewModel.cs index 17f9ffe..d712d2a 100644 --- a/src/MauiSettings.Example/ViewModels/MainPageViewModel.cs +++ b/src/MauiSettings.Example/ViewModels/MainPageViewModel.cs @@ -60,7 +60,7 @@ async Task LoadSettingsFromDevice() await SettingsApp.LoadSettingsAsync(key: App.Hash); LoadSettings(); } - catch(Exception) + catch (Exception) { // Throus if the key missmatches } diff --git a/src/MauiSettings/MauiSettingsGeneric.cs b/src/MauiSettings/MauiSettingsGeneric.cs index 8dfe192..e79df73 100644 --- a/src/MauiSettings/MauiSettingsGeneric.cs +++ b/src/MauiSettings/MauiSettingsGeneric.cs @@ -74,13 +74,13 @@ public static Task LoadSettingAsync(Expression> value, string? ke { await LoadObjectSettingAsync(SettingsObject, value, key: key); }); - + public static Task LoadSecureSettingAsync(Expression> value, string? key = null) => Task.Run(async delegate { await LoadSecureObjectSettingAsync(SettingsObject, value, key: key); }); - + public void LoadObjectSettings() => LoadSettings(this); @@ -849,9 +849,9 @@ List 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);