mirror of
https://github.com/ppy/osu.git
synced 2025-03-15 15:27:20 +08:00
remove unnecessary Schedules
one was bugging out when rapidly switching display styles and the other was... unnecessary
This commit is contained in:
parent
44d821172a
commit
4ce125478a
@ -143,8 +143,7 @@ namespace osu.Game.Overlays
|
||||
if(panels != null)
|
||||
ScrollFlow.Remove(panels);
|
||||
|
||||
// delay new panels so they don't get added before the old ones are gone
|
||||
Scheduler.AddDelayed(() => ScrollFlow.Add(panels = newPanels), 200);
|
||||
ScrollFlow.Add(panels = newPanels);
|
||||
});
|
||||
}
|
||||
|
||||
@ -197,12 +196,9 @@ namespace osu.Game.Overlays
|
||||
|
||||
private void updateUsers(IEnumerable<User> newUsers)
|
||||
{
|
||||
Schedule(() =>
|
||||
{
|
||||
Users = newUsers;
|
||||
loading.Hide();
|
||||
recreatePanels(Filter.DisplayStyleControl.DisplayStyle.Value);
|
||||
});
|
||||
Users = newUsers;
|
||||
loading.Hide();
|
||||
recreatePanels(Filter.DisplayStyleControl.DisplayStyle.Value);
|
||||
}
|
||||
|
||||
public void APIStateChanged(APIAccess api, APIState state)
|
||||
|
Loading…
x
Reference in New Issue
Block a user