Handle rendition selection

This commit is contained in:
2026-05-13 18:23:09 +02:00
parent 9e4fc4aa67
commit e68628daba
18 changed files with 152 additions and 60 deletions
+3
View File
@@ -48,6 +48,9 @@ namespace margelo::nitro::omni {
case BoolProperty::MUTED:
static const auto fieldMUTED = clazz->getStaticField<JBoolProperty>("MUTED");
return clazz->getStaticFieldValue(fieldMUTED);
case BoolProperty::ISAUTOQUALITY:
static const auto fieldISAUTOQUALITY = clazz->getStaticField<JBoolProperty>("ISAUTOQUALITY");
return clazz->getStaticFieldValue(fieldISAUTOQUALITY);
default:
std::string stringValue = std::to_string(static_cast<int>(value));
throw std::invalid_argument("Invalid enum value (" + stringValue + "!");