MCPcopy Create free account
hub / github.com/TactilityProject/Tactility / onChannelSave

Method onChannelSave

Tactility/Source/app/chat/ChatView.cpp:283–290  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

281}
282
283void ChatView::onChannelSave(lv_event_t* e) {
284 auto* self = static_cast<ChatView*>(lv_event_get_user_data(e));
285 auto* text = lv_textarea_get_text(self->channelInput);
286 if (text && strlen(text) > 0) {
287 self->app->switchChannel(std::string(text));
288 }
289 self->hideChannelSelector();
290}
291
292void ChatView::onChannelCancel(lv_event_t* e) {
293 auto* self = static_cast<ChatView*>(lv_event_get_user_data(e));

Callers

nothing calls this directly

Calls 2

hideChannelSelectorMethod · 0.95
switchChannelMethod · 0.80

Tested by

no test coverage detected