1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-22 10:47:25 +08:00

Adjust value change variables to avoid e usage

This commit is contained in:
Dean Herbert 2022-05-05 19:17:32 +09:00
parent 74505ba166
commit e54f5e2d92

View File

@ -238,9 +238,9 @@ namespace osu.Game.Overlays
base.OnFocus(e);
}
private void currentChannelChanged(ValueChangedEvent<Channel> e)
private void currentChannelChanged(ValueChangedEvent<Channel> channel)
{
Channel? newChannel = e.NewValue;
Channel? newChannel = channel.NewValue;
loading.Show();
@ -248,7 +248,7 @@ namespace osu.Game.Overlays
if (newChannel == null)
{
// Find another channel to switch to
newChannel = channelManager.JoinedChannels.FirstOrDefault(chan => chan != e.OldValue);
newChannel = channelManager.JoinedChannels.FirstOrDefault(c => c != channel.OldValue);
if (newChannel == null)
selectorActive.Value = true;