1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-30 04:42:55 +08:00

Fix null inspections on GameplayChatDisplay

This commit is contained in:
Dean Herbert 2024-12-17 19:10:09 +09:00
parent 09fc30e377
commit 47d81e7dee
No known key found for this signature in database

View File

@ -19,6 +19,8 @@ namespace osu.Game.Screens.OnlinePlay.Multiplayer
[Resolved(CanBeNull = true)]
private ILocalUserPlayInfo? localUserInfo { get; set; }
protected new ChatTextBox TextBox => base.TextBox!;
private readonly IBindable<LocalUserPlayingState> localUserPlaying = new Bindable<LocalUserPlayingState>();
public override bool PropagatePositionalInputSubTree => localUserPlaying.Value != LocalUserPlayingState.Playing;
@ -58,7 +60,7 @@ namespace osu.Game.Screens.OnlinePlay.Multiplayer
localUserPlaying.BindValueChanged(playing =>
{
// for now let's never hold focus. this avoid misdirected gameplay keys entering chat.
// for now let's never hold focus. this avoids misdirected gameplay keys entering chat.
// note that this is done within this callback as it triggers an un-focus as well.
TextBox.HoldFocus = false;