multiplayer: fix "Connected" message not appearing on first connection

This commit is contained in:
zhupengfei 2018-11-07 22:41:56 +08:00
parent 0823d8e009
commit 6c29d441f4
No known key found for this signature in database
GPG key ID: DD129E108BD09378

View file

@ -33,6 +33,8 @@ ClientRoomWindow::ClientRoomWindow(QWidget* parent)
connect(this, &ClientRoomWindow::RoomInformationChanged, this, connect(this, &ClientRoomWindow::RoomInformationChanged, this,
&ClientRoomWindow::OnRoomUpdate); &ClientRoomWindow::OnRoomUpdate);
connect(this, &ClientRoomWindow::StateChanged, this, &::ClientRoomWindow::OnStateChange); connect(this, &ClientRoomWindow::StateChanged, this, &::ClientRoomWindow::OnStateChange);
// Update the state
OnStateChange(member->GetState());
} else { } else {
// TODO (jroweboy) network was not initialized? // TODO (jroweboy) network was not initialized?
} }