UI: Move Recording button label update logic
This commit is contained in:
parent
f1f1ca45df
commit
ec1043515b
1 changed files with 2 additions and 5 deletions
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue