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