Browse Source

UI: Fix loading auto start/stop setting in YT dialog

The checkboxes need to be enabled for setting the checked state to
succeed.
derrod 4 years ago
parent
commit
7f2efbdb28
1 changed files with 4 additions and 4 deletions
  1. 4 4
      UI/window-youtube-actions.cpp

+ 4 - 4
UI/window-youtube-actions.cpp

@@ -704,6 +704,10 @@ void OBSYoutubeActions::LoadSettings()
 	else
 		ui->notMakeForKids->setChecked(true);
 
+	bool schedLater = config_get_bool(main->basicConfig, "YouTube",
+					  "ScheduleForLater");
+	ui->checkScheduledLater->setChecked(schedLater);
+
 	bool autoStart =
 		config_get_bool(main->basicConfig, "YouTube", "AutoStart");
 	ui->checkAutoStart->setChecked(autoStart);
@@ -712,10 +716,6 @@ void OBSYoutubeActions::LoadSettings()
 		config_get_bool(main->basicConfig, "YouTube", "AutoStop");
 	ui->checkAutoStop->setChecked(autoStop);
 
-	bool schedLater = config_get_bool(main->basicConfig, "YouTube",
-					  "ScheduleForLater");
-	ui->checkScheduledLater->setChecked(schedLater);
-
 	const char *projection =
 		config_get_string(main->basicConfig, "YouTube", "Projection");
 	if (projection && *projection) {