From 16af33ca76859283fe10096a9a0fdfdd07937093 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 23 Mar 2024 14:11:04 +0000 Subject: [PATCH] [create-pull-request] automated change --- .../ViewModels/MainPageViewModel.cs | 2 +- src/MauiSettings/MauiSettingsGeneric.cs | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) 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);