Fix ignoring match of checkSwitchInfoFromFile() if checkFileContent() does not match

This commit is contained in:
WarmUpTill 2021-04-29 20:35:29 +02:00 committed by WarmUpTill
parent 5d720219bf
commit 2af82fe22a

View File

@ -585,8 +585,8 @@ bool SwitcherData::checkForMatch(OBSWeakSource &scene,
for (int switchFuncName : functionNamesByPriority) {
switch (switchFuncName) {
case read_file_func:
match = checkSwitchInfoFromFile(scene, transition);
match = checkFileContent(scene, transition);
match = checkSwitchInfoFromFile(scene, transition) ||
checkFileContent(scene, transition);
break;
case idle_func:
match = checkIdleSwitch(scene, transition);