chat: disable window timeout after you respond to message
This commit is contained in:
parent
71ac212dc7
commit
13bd42bdab
|
@ -109,6 +109,7 @@ public:
|
||||||
lines.push_back(std::make_pair(WHITE, line));
|
lines.push_back(std::make_pair(WHITE, line));
|
||||||
buf[0] = '\0';
|
buf[0] = '\0';
|
||||||
newMessage = true;
|
newMessage = true;
|
||||||
|
enable_timeout = false;
|
||||||
}
|
}
|
||||||
ImGui::SetKeyboardFocusHere(-1);
|
ImGui::SetKeyboardFocusHere(-1);
|
||||||
}
|
}
|
||||||
|
@ -125,7 +126,7 @@ public:
|
||||||
|
|
||||||
void receive(int playerNum, const std::string& msg)
|
void receive(int playerNum, const std::string& msg)
|
||||||
{
|
{
|
||||||
if (config::GGPOChat)
|
if (config::GGPOChat && !visible)
|
||||||
{
|
{
|
||||||
visible = true;
|
visible = true;
|
||||||
toggle_timeout();
|
toggle_timeout();
|
||||||
|
|
Loading…
Reference in New Issue