From 5968119c611a9a12f55355f617580df0fdd9fd41 Mon Sep 17 00:00:00 2001 From: jp9000 Date: Sat, 21 Aug 2021 06:51:46 -0700 Subject: [PATCH] UI: Hide auto-start/auto-stop options in YouTube dialog Having these widgets visible but disabled will only serve to confuse users, so these widgets don't even need to be visible if the user isn't performing a scheduled broadcast. There really isn't a purpose in having them visible. --- UI/window-youtube-actions.cpp | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/UI/window-youtube-actions.cpp b/UI/window-youtube-actions.cpp index 1d52d4b31..1bbbdda4a 100644 --- a/UI/window-youtube-actions.cpp +++ b/UI/window-youtube-actions.cpp @@ -72,14 +72,16 @@ OBSYoutubeActions::OBSYoutubeActions(QWidget *parent, Auth *auth) [&](int state) { ui->scheduledTime->setVisible(state); if (state) { - ui->checkAutoStart->setEnabled(true); - ui->checkAutoStop->setEnabled(true); + ui->checkAutoStart->setVisible(true); + ui->checkAutoStop->setVisible(true); + ui->helpAutoStartStop->setVisible(true); ui->checkAutoStart->setChecked(false); ui->checkAutoStop->setChecked(false); } else { - ui->checkAutoStart->setEnabled(false); - ui->checkAutoStop->setEnabled(false); + ui->checkAutoStart->setVisible(false); + ui->checkAutoStop->setVisible(false); + ui->helpAutoStartStop->setVisible(false); ui->checkAutoStart->setChecked(true); ui->checkAutoStop->setChecked(true); @@ -87,6 +89,10 @@ OBSYoutubeActions::OBSYoutubeActions(QWidget *parent, Auth *auth) UpdateOkButtonStatus(); }); + ui->checkAutoStart->setVisible(false); + ui->checkAutoStop->setVisible(false); + ui->helpAutoStartStop->setVisible(false); + ui->scheduledTime->setDateTime(QDateTime::currentDateTime()); if (!apiYouTube) {