Browse Source

UI: Disable stream settings if streaming

jp9000 6 years ago
parent
commit
067c3e62a3
1 changed files with 4 additions and 0 deletions
  1. 4 0
      UI/window-basic-settings-stream.cpp

+ 4 - 0
UI/window-basic-settings-stream.cpp

@@ -1,6 +1,7 @@
 #include <QMessageBox>
 
 #include "window-basic-settings.hpp"
+#include "obs-frontend-api.h"
 #include "obs-app.hpp"
 #include "window-basic-main.hpp"
 #include "qt-wrappers.hpp"
@@ -105,6 +106,9 @@ void OBSBasicSettings::LoadStream1Settings()
 
 	UpdateKeyLink();
 
+	bool streamActive = obs_frontend_streaming_active();
+	ui->streamPage->setEnabled(!streamActive);
+
 	loading = false;
 }