UI: Add setting for Twitch chat add-ons choice

Both BTTV and FFZ are fairly popular however they do occasionally
interfere.  To give users the option to chose whichever one they like
most we add a new setting that allows BTTV, FFZ, both, or neither.

Defaults to "None" for new users.  Existing users will be migrated to
"Both" as that's the previous behavior.
This commit is contained in:
derrod 2019-10-10 03:29:09 +02:00 • committed by jp9000
commit 3e841b221d
8 changed files with 128 additions and 30 deletions

View file

@ -337,6 +337,7 @@ OBSBasicSettings::OBSBasicSettings(QWidget *parent)
HookWidget(ui->customServer, EDIT_CHANGED, STREAM1_CHANGED);
HookWidget(ui->key, EDIT_CHANGED, STREAM1_CHANGED);
HookWidget(ui->bandwidthTestEnable, CHECK_CHANGED, STREAM1_CHANGED);
HookWidget(ui->twitchAddonDropdown, COMBO_CHANGED, STREAM1_CHANGED);
HookWidget(ui->useAuth, CHECK_CHANGED, STREAM1_CHANGED);
HookWidget(ui->authUsername, EDIT_CHANGED, STREAM1_CHANGED);
HookWidget(ui->authPw, EDIT_CHANGED, STREAM1_CHANGED);
@ -3486,6 +3487,12 @@ void OBSBasicSettings::closeEvent(QCloseEvent *event)
{
if (Changed() && !QueryChanges())
event->ignore();
if (forceAuthReload) {
main->auth->Save();
main->auth->Load();
forceAuthReload = false;
}
}
void OBSBasicSettings::on_theme_activated(int idx)