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

Method UpdateItemStatus

src/render_panel/ui/st_plugins.cpp:146–159  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

144 }
145
146 void StPlugins::UpdateItemStatus() {
147 if (stream_list_->count() != items_info_.size()) {
148 LOGE("Invalid plugins count: {} => {}", stream_list_->count(), items_info_.size());
149 return;
150 }
151 context_->PostUITask([=, this]() {
152 int count = stream_list_->count();
153 for (int i = 0; i < count; i++) {
154 QListWidgetItem *item = stream_list_->item(i);
155 auto item_widget = (StPluginItemWidget*)stream_list_->itemWidget(item);
156 item_widget->UpdateStatus();
157 }
158 });
159 }
160
161}

Callers

nothing calls this directly

Calls 2

PostUITaskMethod · 0.45
UpdateStatusMethod · 0.45

Tested by

no test coverage detected