Sfoglia il codice sorgente

UI: Disable transition props menu when transitioning

When transitioning, the transitions properties menu would still be
enabled.
Clayton Groeneveld 4 anni fa
parent
commit
90efc5c69c
1 ha cambiato i file con 8 aggiunte e 0 eliminazioni
  1. 8 0
      UI/window-basic-main-transitions.cpp

+ 8 - 0
UI/window-basic-main-transitions.cpp

@@ -1558,6 +1558,14 @@ void OBSBasic::EnableTransitionWidgets(bool enable)
 {
 	ui->transitions->setEnabled(enable);
 
+	if (!enable) {
+		ui->transitionProps->setEnabled(false);
+	} else {
+		bool configurable =
+			obs_source_configurable(GetCurrentTransition());
+		ui->transitionProps->setEnabled(configurable);
+	}
+
 	if (!IsPreviewProgramMode())
 		return;