Skip to content

Commit

Permalink
Ensure channel selector is dismissed when the current channel is changed
Browse files Browse the repository at this point in the history
  • Loading branch information
jai-x committed May 9, 2022
1 parent 9ec8b60 commit d4cc2bd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions osu.Game/Overlays/ChatOverlayV2.cs
Original file line number Diff line number Diff line change
Expand Up @@ -191,8 +191,6 @@ public void HighlightMessage(Message message, Channel channel)
channelManager.CurrentChannel.Value = channel;
}

selectorActive.Value = false;

channel.HighlightedMessage.Value = message;

Show();
Expand Down Expand Up @@ -268,6 +266,8 @@ private void currentChannelChanged(ValueChangedEvent<Channel> channel)
return;
}

selectorActive.Value = false;

LoadComponentAsync(new DrawableChannel(newChannel), loaded =>
{
currentChannelContainer.Clear();
Expand Down

0 comments on commit d4cc2bd

Please sign in to comment.