Skip to content

Commit

Permalink
Update display name on loading save
Browse files Browse the repository at this point in the history
  • Loading branch information
codemonkey85 committed Sep 26, 2023
1 parent d5af51c commit 01da871
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Pkmds.Rcl/Components/SaveFileNameDisplay.razor
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
@inherits BasePkmdsComponent
@implements IDisposable

@if (AppState.SaveFile is { Gender: 0 or 1 } saveFile)
{
Expand All @@ -15,4 +16,8 @@
<span>, @saveFile.Version</span>
<span>, @saveFile.PlayTimeString)</span>
</MudStack>;

protected override void OnInitialized() => RefreshService.OnAppStateChanged += StateHasChanged;

public void Dispose() => RefreshService.OnAppStateChanged -= StateHasChanged;
}

0 comments on commit 01da871

Please sign in to comment.