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:
cg2121 2024-02-29 16:49:30 -06:00 • committed by Matthew Gajownik
commit 04036f311e

View file

@ -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(