From 3de41632d476e42bab400674eb3071c63222ee66 Mon Sep 17 00:00:00 2001 From: Exeldro Date: Tue, 23 Jul 2024 10:01:11 +0200 Subject: [PATCH] Fix confirm button text --- output-dialog.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/output-dialog.cpp b/output-dialog.cpp index f5ea4e4..1da2fe2 100644 --- a/output-dialog.cpp +++ b/output-dialog.cpp @@ -494,7 +494,7 @@ QWidget *OutputDialog::WizardInfoYouTube(bool edit) auto contentLayout = new QVBoxLayout; // Confirm button - initialised here so we can set state in form input connects - auto confirmButton = generateButton(QString("Create Output")); + auto confirmButton = generateButton(QString(obs_module_text(edit ? "SaveOutput" : "CreateOutput"))); // Form auto formLayout = new QFormLayout; @@ -574,7 +574,7 @@ QWidget *OutputDialog::WizardInfoTwitter(bool edit) auto contentLayout = new QVBoxLayout; // Confirm button - initialised here so we can set state in form input connects - auto confirmButton = generateButton(QString("Create Output")); + auto confirmButton = generateButton(QString(obs_module_text(edit ? "SaveOutput" : "CreateOutput"))); // Form auto formLayout = new QFormLayout; @@ -656,7 +656,7 @@ QWidget *OutputDialog::WizardInfoUnknown(bool edit) auto contentLayout = new QVBoxLayout; // Confirm button - initialised here so we can set state in form input connects - auto confirmButton = generateButton(QString("Create Output")); + auto confirmButton = generateButton(QString(obs_module_text(edit ? "SaveOutput" : "CreateOutput"))); // Form auto formLayout = new QFormLayout; @@ -736,7 +736,7 @@ QWidget *OutputDialog::WizardInfoTwitch(bool edit) auto contentLayout = new QVBoxLayout; // Confirm button - initialised here so we can set state in form input connects - auto confirmButton = generateButton(QString("Create Output")); + auto confirmButton = generateButton(QString(obs_module_text(edit ? "SaveOutput" : "CreateOutput"))); // Form auto formLayout = new QFormLayout; @@ -820,7 +820,7 @@ QWidget *OutputDialog::WizardInfoTrovo(bool edit) auto contentLayout = new QVBoxLayout; // Confirm button - initialised here so we can set state in form input connects - auto confirmButton = generateButton(QString("Create Output")); + auto confirmButton = generateButton(QString(obs_module_text(edit ? "SaveOutput" : "CreateOutput"))); // Form auto formLayout = new QFormLayout; @@ -904,7 +904,7 @@ QWidget *OutputDialog::WizardInfoTikTok(bool edit) auto contentLayout = new QVBoxLayout; // Confirm button - initialised here so we can set state in form input connects - auto confirmButton = generateButton(QString("Create Output")); + auto confirmButton = generateButton(QString(obs_module_text(edit ? "SaveOutput" : "CreateOutput"))); // Form auto formLayout = new QFormLayout; @@ -986,7 +986,7 @@ QWidget *OutputDialog::WizardInfoFacebook(bool edit) auto contentLayout = new QVBoxLayout; // Confirm button - initialised here so we can set state in form input connects - auto confirmButton = generateButton(QString("Create Output")); + auto confirmButton = generateButton(QString(obs_module_text(edit ? "SaveOutput" : "CreateOutput"))); // Form auto formLayout = new QFormLayout;