Skip to content

Commit

Permalink
Revert refactoring of UpdateDisplay()
Browse files Browse the repository at this point in the history
Factored out into jamulussoftware#3369
  • Loading branch information
ann0see committed Sep 13, 2024
1 parent 66edab5 commit 49402c2
Showing 1 changed file with 10 additions and 12 deletions.
22 changes: 10 additions & 12 deletions src/clientsettingsdlg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1066,24 +1066,22 @@ void CClientSettingsDlg::OnSndCrdBufferDelayButtonGroupClicked ( QAbstractButton
void CClientSettingsDlg::UpdateUploadRate()
{
// update upstream rate information label
if ( pClient->IsConnected() )
{
lblUpstreamValue->setText ( QString().setNum ( pClient->GetUploadRateKbps() ) );
lblUpstreamUnit->setText ( "kbps" );
}
else
{
lblUpstreamValue->setText ( "---" );
lblUpstreamUnit->setText ( "" );
}
lblUpstreamValue->setText ( QString().setNum ( pClient->GetUploadRateKbps() ) );
lblUpstreamUnit->setText ( "kbps" );
}

void CClientSettingsDlg::UpdateDisplay()
{
// update slider controls (settings might have been changed) and upstream rate information label
// update slider controls (settings might have been changed)
UpdateJitterBufferFrame();
UpdateSoundCardFrame();
UpdateUploadRate();

if ( !pClient->IsRunning() )
{
// clear text labels with client parameters
lblUpstreamValue->setText ( "---" );
lblUpstreamUnit->setText ( "" );
}
}

void CClientSettingsDlg::UpdateDirectoryComboBox()
Expand Down

0 comments on commit 49402c2

Please sign in to comment.