@page "/DevOptions"
@inject NavigationManager NavigationManager
@inject ILocalStorageService LocalStorage
Developer options
Rory&::MatrixUtils - Developer options
@code {
MRUStorageWrapper.Settings settings { get; set; } = new();
protected override async Task OnInitializedAsync() {
settings = await TieredStorage.DataStorageProvider.LoadObjectAsync("mru.settings");
await base.OnInitializedAsync();
}
private async Task LogStuff() {
await Task.Delay(100);
Console.WriteLine($"Settings: {settings.ToJson()}");
await TieredStorage.DataStorageProvider.SaveObjectAsync("mru.settings", settings);
}
}