| 586 | } |
| 587 | |
| 588 | void AppStreamList::EditStream(const std::shared_ptr<spvr::SpvrStream>& item) { |
| 589 | auto si = db_mgr_->GetStreamByStreamId(item->stream_id_); |
| 590 | if (!si.has_value()) { |
| 591 | LOGE("read stream item from db failed: {}", item->stream_id_); |
| 592 | return; |
| 593 | } |
| 594 | |
| 595 | auto dialog = new EditRelayStreamDialog(context_, si.value(), grWorkspace.get()); |
| 596 | dialog->exec(); |
| 597 | |
| 598 | // if (item->HasRelayInfo()) { |
| 599 | // auto dialog = new EditRelayStreamDialog(context_, si.value(), grWorkspace.get()); |
| 600 | // dialog->exec(); |
| 601 | // } |
| 602 | // else { |
| 603 | // auto dialog = new CreateStreamDialog(context_, si.value(), grWorkspace.get()); |
| 604 | // dialog->exec(); |
| 605 | // } |
| 606 | } |
| 607 | |
| 608 | void AppStreamList::DeleteStream(const std::shared_ptr<spvr::SpvrStream>& item) { |
| 609 | TcDialog dialog(tcTr("id_warning"), tcTr("id_delete_remote_control"), grWorkspace.get()); |
nothing calls this directly
no test coverage detected