| 101 | } |
| 102 | |
| 103 | void ThirdResolutionPanel::UpdateMonitor(const MsgClientCaptureMonitor::CaptureMonitor& m) { |
| 104 | monitor_ = m; |
| 105 | std::vector<SingleItemPtr> items; |
| 106 | for (const auto& res : monitor_.resolutions_) { |
| 107 | items.push_back(std::make_shared<SingleItem>(SingleItem { .name_ = std::format("{}x{}", res.width_, res.height_).c_str() })); |
| 108 | } |
| 109 | listview_->UpdateItems(items); |
| 110 | |
| 111 | SelectCapturingMonitorSize(); |
| 112 | } |
| 113 | |
| 114 | } |
no test coverage detected