| 365 | } |
| 366 | |
| 367 | void ChatMessagePropertyEdit::SetVisibility() |
| 368 | { |
| 369 | auto defaultValue = _property.GetDefaultValue(); |
| 370 | _boolValue->setVisible(std::holds_alternative<bool>(defaultValue)); |
| 371 | const bool isTextValue = |
| 372 | std::holds_alternative<StringVariable>(defaultValue); |
| 373 | _textValue->setVisible(isTextValue); |
| 374 | _regex->setVisible(isTextValue); |
| 375 | } |
| 376 | |
| 377 | void ChatMessageProperty::Save(obs_data_t *obj) const |
| 378 | { |
nothing calls this directly
no test coverage detected