UI: Reserve size of congestion vector
This reserves the size of the congestion vector in the status bar, so it isn't resized every second.
This commit is contained in:
parent
3af1b78f35
commit
04036f311e
1 changed files with 2 additions and 0 deletions
|
|
@ -42,6 +42,8 @@ OBSBasicStatusBar::OBSBasicStatusBar(QWidget *parent)
|
|||
streamingActivePixmap(QIcon(":/res/images/streaming-active.svg")
|
||||
.pixmap(QSize(16, 16)))
|
||||
{
|
||||
congestionArray.reserve(congestionUpdateSeconds);
|
||||
|
||||
statusWidget = new StatusBarWidget(this);
|
||||
statusWidget->ui->delayInfo->setText("");
|
||||
statusWidget->ui->droppedFrames->setText(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue