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

Method RefreshListWidget

src/render_panel/ui/st_plugins.cpp:128–144  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

126 }
127
128 void StPlugins::RefreshListWidget() {
129 if (!stream_list_) {
130 return;
131 }
132 context_->PostUITask([=, this]() {
133 auto index = 0;
134 int count = stream_list_->count();
135 for (int i = 0; i < count; i++) {
136 auto item = stream_list_->takeItem(0);
137 delete item;
138 }
139
140 for (const auto& item_info : items_info_) {
141 AddItem(item_info, index++);
142 }
143 });
144 }
145
146 void StPlugins::UpdateItemStatus() {
147 if (stream_list_->count() != items_info_.size()) {

Callers

nothing calls this directly

Calls 1

PostUITaskMethod · 0.45

Tested by

no test coverage detected