mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 10:12:54 +08:00
Move cancellation token construction closer to usage
This commit is contained in:
parent
dd68106d90
commit
a46602f705
@ -146,8 +146,6 @@ namespace osu.Game.Overlays
|
||||
return;
|
||||
}
|
||||
|
||||
loadCancellation = new CancellationTokenSource();
|
||||
|
||||
IEnumerable<User> sortedUsers = Users;
|
||||
|
||||
switch (Filter.Tabs.Current.Value)
|
||||
@ -202,7 +200,7 @@ namespace osu.Game.Overlays
|
||||
|
||||
loading.Hide();
|
||||
ScrollFlow.Add(panels = newPanels);
|
||||
}, loadCancellation.Token);
|
||||
}, (loadCancellation = new CancellationTokenSource()).Token);
|
||||
}
|
||||
|
||||
private void onFilterUpdate()
|
||||
|
Loading…
Reference in New Issue
Block a user