UI: Allow enabling vod track on custom via ini

This commit is contained in:
jp9000
2020-12-03 01:31:32 -08:00
parent eac66d773c
commit 7a17f47d8a
2 changed files with 12 additions and 2 deletions

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;