diff --git a/CCharLearn/Pages/Index.razor b/CCharLearn/Pages/Index.razor
index 25b7ac6..9c7ce04 100644
--- a/CCharLearn/Pages/Index.razor
+++ b/CCharLearn/Pages/Index.razor
@@ -14,7 +14,7 @@
}
-
+
@((!continueDataExists) ? "Start learning!" : "Start new!")
@if (continueDataExists)
@@ -35,6 +35,10 @@
+
+
+
+
@if (Charecters != null)
{
@@ -86,6 +90,19 @@
bool continueDataExists = false;
int continueCharectersLeft = -1;
+ private bool isEasyMode;
+
+ public bool IsEasyMode
+ {
+ get { return isEasyMode; }
+ set
+ {
+ isEasyMode = value;
+ SetEasyMode();
+ }
+ }
+
+
protected async override Task OnInitializedAsync()
{
@@ -134,6 +151,11 @@
StateHasChanged();
}
+ async void SetEasyMode()
+ {
+ await localStorage.SetItemAsync("EasyMode", isEasyMode);
+ }
+
async Task LoadAllChunksIntoLocalStorage()
{
isLoading = true;
@@ -190,5 +212,10 @@
{
continueCharectersLeft = await localStorage.GetItemAsync("ContinueCharectersLeft");
}
+
+ if (await localStorage.ContainKeyAsync("EasyMode"))
+ {
+ isEasyMode = await localStorage.GetItemAsync("EasyMode");
+ }
}
}
\ No newline at end of file