1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-14 04:02:59 +08:00

More code quality inspections

This commit is contained in:
Bartłomiej Dach 2023-12-28 00:09:51 +01:00
parent ac449131ed
commit ef39759813
No known key found for this signature in database
2 changed files with 2 additions and 1 deletions

View File

@ -24,6 +24,7 @@ namespace osu.Game.Online.API.Requests.Responses
public override bool Equals(object? obj) => obj is APISystemTitle other && Equals(other);
// ReSharper disable NonReadonlyMemberInGetHashCode
public override int GetHashCode() => HashCode.Combine(Image, Url);
}
}

View File

@ -93,7 +93,7 @@ namespace osu.Game.Screens.Menu
LoadComponentAsync(new SystemTitleImage(Current.Value), loaded =>
{
if (loaded.SystemTitle != Current.Value)
if (!loaded.SystemTitle.Equals(Current.Value))
loaded.Dispose();
loaded.FadeInFromZero(500, Easing.OutQuint);