MauiSettings
MauiSettings copied to clipboard
Settings not saved on Windows and Android since Upgrade to v1.0.8 and v1.0.9
I upgraded the used version of MauiSettings in my project from v1.0.7 to v1.0.9 and noticed that settings are not saved anymore between runs of my program. It seems that AppSettings.SaveSettings(); silently fails, no errors what so ever.
// Save that we succesfully downloaded the resources for the current version
AppSettings.ResourcesCurrentVersionAvailable = AppInfo.Current.VersionString;
AppSettings.SaveSettings();`
public partial class AppSettings : MauiSettings<AppSettings>
{
#region Settings
#region Version
[MauiSetting(Name = nameof(ResourcesCurrentVersionAvailable))]
public static string ResourcesCurrentVersionAvailable { get; set; }
Steps to reproduce:
- Run Program
- Read a setting
- Change its value and save the changes
- Restart the program
Expected behavior: the value read is 'NewValue' actual 'null'.
Any help on this is highly appreciated.