mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-02-28 12:28:38 -05:00
UI: Make sure all message box buttons are translated
Instead of QMessageBox::question and QMessageBox::information, use the OBSMessageBox class, which translates all buttons.
This commit is contained in:
@@ -3006,7 +3006,7 @@ bool OBSBasicSettings::QueryChanges()
|
||||
{
|
||||
QMessageBox::StandardButton button;
|
||||
|
||||
button = QMessageBox::question(this,
|
||||
button = OBSMessageBox::question(this,
|
||||
QTStr("Basic.Settings.ConfirmTitle"),
|
||||
QTStr("Basic.Settings.Confirm"),
|
||||
QMessageBox::Yes | QMessageBox::No |
|
||||
@@ -3871,10 +3871,9 @@ void OBSBasicSettings::SimpleRecordingQualityLosslessWarning(int idx)
|
||||
QString("\n\n") +
|
||||
SIMPLE_OUTPUT_WARNING("Lossless.Msg");
|
||||
|
||||
button = QMessageBox::question(this,
|
||||
button = OBSMessageBox::question(this,
|
||||
SIMPLE_OUTPUT_WARNING("Lossless.Title"),
|
||||
warningString,
|
||||
QMessageBox::Yes | QMessageBox::No);
|
||||
warningString);
|
||||
|
||||
if (button == QMessageBox::No) {
|
||||
QMetaObject::invokeMethod(ui->simpleOutRecQuality,
|
||||
|
||||
Reference in New Issue
Block a user