mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-10-20 13:04:54 -04:00
UI: Move Recording button label update logic
This commit is contained in:
1 parent
f1f1ca45df
commit
ec1043515b
1 file changed
+2
-5
@@ -2493,6 +2493,7 @@ void OBSBasic::StreamingStop(int code)
|
||||
void OBSBasic::RecordingStart()
|
||||
{
|
||||
ui->statusbar->RecordingStarted(outputHandler->fileOutput);
|
||||
ui->recordButton->setText(QTStr("Basic.Main.StopRecording"));
|
||||
}
|
||||
|
||||
void OBSBasic::RecordingStop()
|
||||
@@ -2523,11 +2524,7 @@ void OBSBasic::on_recordButton_clicked()
|
||||
if (outputHandler->RecordingActive()) {
|
||||
outputHandler->StopRecording();
|
||||
} else {
|
||||
|
||||
if (outputHandler->StartRecording()) {
|
||||
ui->recordButton->setText(
|
||||
QTStr("Basic.Main.StopRecording"));
|
||||
}
|
||||
outputHandler->StartRecording();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user