| 245 | } |
| 246 | |
| 247 | void MacroConditionWebsocketEdit::UpdateEntryData() |
| 248 | { |
| 249 | if (!_entryData) { |
| 250 | return; |
| 251 | } |
| 252 | |
| 253 | _conditions->setCurrentIndex(static_cast<int>(_entryData->GetType())); |
| 254 | _message->setPlainText(_entryData->_message); |
| 255 | _regex->SetRegexConfig(_entryData->_regex); |
| 256 | _connection->SetConnection(_entryData->GetConnection()); |
| 257 | _clearBufferOnMatch->setChecked(_entryData->_clearBufferOnMatch); |
| 258 | |
| 259 | if (_entryData->GetType() == MacroConditionWebsocket::Type::REQUEST) { |
| 260 | SetupRequestEdit(); |
| 261 | } else { |
| 262 | SetupEventEdit(); |
| 263 | } |
| 264 | |
| 265 | adjustSize(); |
| 266 | updateGeometry(); |
| 267 | } |
| 268 | |
| 269 | void MacroConditionWebsocketEdit::ConditionChanged(int index) |
| 270 | { |
nothing calls this directly
no test coverage detected