UI: Allow enabling vod track on custom via ini

This commit is contained in:
jp9000 committed 2020-12-03 01:31:32 -08:00
1 parent eac66d773c
commit 7a17f47d8a
2 files changed
+12 -2

No files matched your search

+5
View File
@@ -619,9 +619,14 @@ void OBSBasicSettings::on_useAuth_toggled()
void OBSBasicSettings::UpdateVodTrackSetting()
{
bool enableForCustomServer = config_get_bool(
GetGlobalConfig(), "General", "EnableCustomServerVodTrack");
bool enableVodTrack = ui->service->currentText() == "Twitch";
bool wasEnabled = !!vodTrackCheckbox;
if (enableForCustomServer && IsCustomService())
enableVodTrack = true;
if (enableVodTrack == wasEnabled)
return;