Kaynağa Gözat

UI: Rename callback to match signal name

The sizeChanged callback is connected to the screenChanged signal,
and evidently the naming doesn't match. Rename the callback to
match the signal name.
Georges Basile Stavracas Neto 5 yıl önce
ebeveyn
işleme
f817300cfa
1 değiştirilmiş dosya ile 2 ekleme ve 2 silme
  1. 2 2
      UI/qt-display.cpp

+ 2 - 2
UI/qt-display.cpp

@@ -56,7 +56,7 @@ OBSQTDisplay::OBSQTDisplay(QWidget *parent, Qt::WindowFlags flags)
 		}
 	};
 
-	auto sizeChanged = [this](QScreen *) {
+	auto screenChanged = [this](QScreen *) {
 		CreateDisplay();
 
 		QSize size = GetPixelSize(this);
@@ -64,7 +64,7 @@ OBSQTDisplay::OBSQTDisplay(QWidget *parent, Qt::WindowFlags flags)
 	};
 
 	connect(windowHandle(), &QWindow::visibleChanged, windowVisible);
-	connect(windowHandle(), &QWindow::screenChanged, sizeChanged);
+	connect(windowHandle(), &QWindow::screenChanged, screenChanged);
 }
 
 QColor OBSQTDisplay::GetDisplayBackgroundColor() const