Premature checks to avoid unnecessary updates

This commit is contained in:
Sebastian Krajewski 2020-01-06 01:53:29 +01:00
parent f70f25098b
commit d1f3cb3dbd

View File

@ -36,6 +36,8 @@ namespace osu.Game.Graphics.Backgrounds
get => colourLight;
set
{
if (colourLight == value) return;
colourLight = value;
updateColours();
}
@ -48,6 +50,8 @@ namespace osu.Game.Graphics.Backgrounds
get => colourDark;
set
{
if (colourDark == value) return;
colourDark = value;
updateColours();
}