mirror of
https://github.com/outbackdingo/UltraGrid.git
synced 2026-03-22 04:40:30 +00:00
GUI: Fix embedded audio playback devices not appearing
This commit is contained in:
committed by
Martin Pulec
parent
ed89e52f40
commit
31a5ef4313
@@ -40,7 +40,8 @@ static bool conditionsSatisfied(
|
||||
for(const auto &condClause : conds){
|
||||
bool orRes = false;
|
||||
for(const auto &condItem : condClause){
|
||||
bool val = condItem.value.val == settings->getOption(condItem.value.opt).getValue();
|
||||
//Check if condItem.value.val is the prefix of the currently set value
|
||||
bool val = settings->getOption(condItem.value.opt).getValue().rfind(condItem.value.val, 0) == 0;
|
||||
|
||||
//negate result if negation is true
|
||||
val = val != condItem.negation;
|
||||
|
||||
Reference in New Issue
Block a user