MCPcopy Create free account
hub / github.com/RGAA-Software/GoDesk / UpdateMonitor

Method UpdateMonitor

src/client/ui/float_3rd_resolution_panel.cpp:103–112  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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}

Callers 2

SubDisplayPanelMethod · 0.80
UpdateMonitorInfoMethod · 0.80

Calls 1

UpdateItemsMethod · 0.80

Tested by

no test coverage detected