mirror of
https://github.com/osukey/osukey.git
synced 2025-06-03 11:57:36 +09:00
Premature checks to avoid unnecessary updates
This commit is contained in:
parent
f70f25098b
commit
d1f3cb3dbd
@ -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();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user