Skip to content

Commit

Permalink
add workaround for cut off buffer delay text
Browse files Browse the repository at this point in the history
When choosing a non-predefined buffer delay, the text is cut off. Appending
2 space characters seems to fix the problem.

Fixes #1430

Signed-off-by: Martin Kaistra <[email protected]>
  • Loading branch information
djfun committed Feb 8, 2022
1 parent 7790395 commit 573dae6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/clientsettingsdlg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -823,7 +823,8 @@ void CClientSettingsDlg::UpdateSoundCardFrame()
else
{
// special title text with buffer size information added
grbSoundCrdBufDelay->setTitle ( tr ( "Buffer Delay: " ) + GenSndCrdBufferDelayString ( iCurActualBufSize ) );
// append 2 whitespace characters, so that the text doesn't get cut off
grbSoundCrdBufDelay->setTitle ( tr ( "Buffer Delay: " ) + GenSndCrdBufferDelayString ( iCurActualBufSize ) + " " );
}
}

Expand Down

0 comments on commit 573dae6

Please sign in to comment.