mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-31 21:15:33 +08:00
Handle users joining and leaving properly in audio context and gui
Before this change signals when users were joining or leaving the voice room were not properly handled. A new signal in audio context is emitted now and gui will rebuild the user list when it is emitted.
This commit is contained in:
committed by
Klaus Basan
parent
a50e45e451
commit
0760a67138
@@ -40,6 +40,7 @@ namespace BlackGui
|
||||
void CVoiceRoomsComponent::runtimeHasBeenSet()
|
||||
{
|
||||
this->connect(this->getIContextAudio(), &IContextAudio::changedVoiceRooms, this, &CVoiceRoomsComponent::ps_updateAudioVoiceRoomsFromContext);
|
||||
this->connect(this->getIContextAudio(), &IContextAudio::changedVoiceRoomMembers, this, &CVoiceRoomsComponent::ps_updateVoiceRoomMembers);
|
||||
}
|
||||
|
||||
void CVoiceRoomsComponent::ps_onVoiceRoomOverrideChanged(bool checked)
|
||||
@@ -102,7 +103,7 @@ namespace BlackGui
|
||||
}
|
||||
if (changedUrl1 || changedUrl2)
|
||||
{
|
||||
this->updateVoiceRoomMembers();
|
||||
this->ps_updateVoiceRoomMembers();
|
||||
|
||||
// notify
|
||||
if (this->getIContextAudio())
|
||||
@@ -115,7 +116,7 @@ namespace BlackGui
|
||||
}
|
||||
}
|
||||
|
||||
void CVoiceRoomsComponent::updateVoiceRoomMembers()
|
||||
void CVoiceRoomsComponent::ps_updateVoiceRoomMembers()
|
||||
{
|
||||
if (!this->getIContextAudio()) { return; }
|
||||
if (!this->ui->le_CockpitVoiceRoomCom1->text().trimmed().isEmpty())
|
||||
|
||||
Reference in New Issue
Block a user