VideoCommon: update NetplayChatUI's chat message input to use a hidden label. This avoids an error thrown by imgui

This commit is contained in:
iwubcode 2023-07-29 00:27:07 -05:00 committed by Nayla Hanegan
commit 7957dbc343
No known key found for this signature in database
GPG key ID: 3075216CED0DB01D

View file

@ -57,7 +57,7 @@ void NetPlayChatUI::Display()
ImGui::PushItemWidth(-50.0f * scale);
if (ImGui::InputText("", m_message_buf, IM_ARRAYSIZE(m_message_buf),
if (ImGui::InputText("##NetplayMessageBuffer", m_message_buf, IM_ARRAYSIZE(m_message_buf),
ImGuiInputTextFlags_EnterReturnsTrue))
{
SendMessage();