mirror of https://github.com/ppy/osu
Make BeatmapOptionsButton insertion cleaner
This commit is contained in:
parent
7bdf737956
commit
9037fb59de
|
@ -110,8 +110,7 @@ public void AddButton(string firstLine, string secondLine, IconUsage icon, Color
|
|||
HotKey = hotkey
|
||||
};
|
||||
|
||||
buttonsContainer.Add(button);
|
||||
buttonsContainer.SetLayoutPosition(button, depth);
|
||||
buttonsContainer.Insert((int)depth, button);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue