Explorar el Código

UI: Fix issue where rec time left would show negative time

The recording time left timer was being called an unnecessary time,
in the stats constructor, when it should have only been started
when the recording starts.
Clayton Groeneveld hace 6 años
padre
commit
1282a5a3dc
Se han modificado 1 ficheros con 0 adiciones y 1 borrados
  1. 0 1
      UI/window-basic-stats.cpp

+ 0 - 1
UI/window-basic-stats.cpp

@@ -176,7 +176,6 @@ OBSBasicStats::OBSBasicStats(QWidget *parent, bool closeable)
 	QObject::connect(&recTimeLeft, &QTimer::timeout, this,
 	QObject::connect(&recTimeLeft, &QTimer::timeout, this,
 			&OBSBasicStats::RecordingTimeLeft);
 			&OBSBasicStats::RecordingTimeLeft);
 	recTimeLeft.setInterval(REC_TIME_LEFT_INTERVAL);
 	recTimeLeft.setInterval(REC_TIME_LEFT_INTERVAL);
-	recTimeLeft.start();
 
 
 	OBSBasic *main = reinterpret_cast<OBSBasic*>(App()->GetMainWindow());
 	OBSBasic *main = reinterpret_cast<OBSBasic*>(App()->GetMainWindow());