| 224 | } |
| 225 | |
| 226 | void ChatView::showChannelSelector() { |
| 227 | if (!channelPanel || !state) return; |
| 228 | |
| 229 | std::string current = state->getCurrentChannel(); |
| 230 | lv_textarea_set_text(channelInput, current.c_str()); |
| 231 | |
| 232 | lv_obj_add_flag(msgList, LV_OBJ_FLAG_HIDDEN); |
| 233 | lv_obj_add_flag(inputWrapper, LV_OBJ_FLAG_HIDDEN); |
| 234 | lv_obj_remove_flag(channelPanel, LV_OBJ_FLAG_HIDDEN); |
| 235 | } |
| 236 | |
| 237 | void ChatView::hideChannelSelector() { |
| 238 | if (!channelPanel || !msgList || !inputWrapper) return; |
no test coverage detected