Prevent updateSelected from being repeatedly called
This commit is contained in:
@@ -723,9 +723,13 @@ class SongMenuItem extends FlxSpriteGroup
|
||||
|
||||
function set_selected(value:Bool):Bool
|
||||
{
|
||||
// cute one liners, lol!
|
||||
final wasSelected:Bool = selected;
|
||||
|
||||
selected = value;
|
||||
updateSelected();
|
||||
if (wasSelected != selected)
|
||||
{
|
||||
updateSelected();
|
||||
}
|
||||
return selected;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user