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-03-17 10:53:44 +11:00
committed by Matthew Gajownik
parent 3af1b78f35
commit 04036f311e
+2
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(