mirror of
https://github.com/ppy/osu.git
synced 2025-01-14 20:32:55 +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);
|
public override bool Equals(object? obj) => obj is APISystemTitle other && Equals(other);
|
||||||
|
|
||||||
|
// ReSharper disable NonReadonlyMemberInGetHashCode
|
||||||
public override int GetHashCode() => HashCode.Combine(Image, Url);
|
public override int GetHashCode() => HashCode.Combine(Image, Url);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -93,7 +93,7 @@ namespace osu.Game.Screens.Menu
|
|||||||
|
|
||||||
LoadComponentAsync(new SystemTitleImage(Current.Value), loaded =>
|
LoadComponentAsync(new SystemTitleImage(Current.Value), loaded =>
|
||||||
{
|
{
|
||||||
if (loaded.SystemTitle != Current.Value)
|
if (!loaded.SystemTitle.Equals(Current.Value))
|
||||||
loaded.Dispose();
|
loaded.Dispose();
|
||||||
|
|
||||||
loaded.FadeInFromZero(500, Easing.OutQuint);
|
loaded.FadeInFromZero(500, Easing.OutQuint);
|
||||||
|
Loading…
Reference in New Issue
Block a user