mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-10 08:14:47 -07:00
Add flag for checking inital server message
This commit is contained in:
parent
c96f234b6d
commit
b140721d50
2 changed files with 7 additions and 1 deletions
|
|
@ -168,7 +168,12 @@ void TabServer::retranslateUi()
|
|||
void TabServer::processServerMessageEvent(const Event_ServerMessage &event)
|
||||
{
|
||||
serverInfoBox->setHtml(QString::fromStdString(event.message()));
|
||||
emit userEvent();
|
||||
if (shouldEmitUpdate) {
|
||||
// prevent the initial server message from taking attention from ping icon
|
||||
emit userEvent();
|
||||
} else {
|
||||
shouldEmitUpdate = true;
|
||||
}
|
||||
}
|
||||
|
||||
void TabServer::joinRoom(int id, bool setCurrent)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue