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:
parent
ac449131ed
commit
ef39759813
@ -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);
|
||||
}
|
||||
}
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user