diff --git a/JournalApp/App.xaml.cs b/JournalApp/App.xaml.cs index 12c93df..7fe793d 100644 --- a/JournalApp/App.xaml.cs +++ b/JournalApp/App.xaml.cs @@ -17,7 +17,7 @@ public App() public static (DateTimeOffset LeftAt, DateOnly LastDate)? IndexDateState { get; set; } - public int LaunchCount + public static int LaunchCount { get => Preferences.Get("launches", 0); set => Preferences.Set("launches", value); diff --git a/JournalApp/Components/Pages/Index.razor b/JournalApp/Components/Pages/Index.razor index eaf85cb..ca16e53 100644 --- a/JournalApp/Components/Pages/Index.razor +++ b/JournalApp/Components/Pages/Index.razor @@ -10,6 +10,7 @@ @inject KeyEventService KeyEventService @inject NavigationManager NavigationManager @inject IScrollManager ScrollManager +@inject AppRatingService AppRatingService