Ver código fonte

Hide audio captures as sources in basic mode

Still not 100% decided on this, but I already see people getting
confused over this, so I'm just going to hide them for the time being.
jp9000 11 anos atrás
pai
commit
71e32f8948
1 arquivos alterados com 4 adições e 0 exclusões
  1. 4 0
      obs/window-basic-main.cpp

+ 4 - 0
obs/window-basic-main.cpp

@@ -961,6 +961,10 @@ void OBSBasic::AddSourcePopupMenu(const QPoint &pos)
 
 
 		if (strcmp(type, "scene") == 0)
 		if (strcmp(type, "scene") == 0)
 			continue;
 			continue;
+		if (strcmp(type, App()->InputAudioSource()) == 0)
+			continue;
+		if (strcmp(type, App()->OutputAudioSource()) == 0)
+			continue;
 
 
 		QAction *popupItem = new QAction(QT_UTF8(name), this);
 		QAction *popupItem = new QAction(QT_UTF8(name), this);
 		popupItem->setData(QT_UTF8(type));
 		popupItem->setData(QT_UTF8(type));