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

Method UpdateStatus

src/render_panel/ui/st_plugin_item_widget.cpp:133–154  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

131 }
132
133 void StPluginItemWidget::UpdateStatus() {
134 if (!lbl_enabled_) {
135 return;
136 }
137
138 bool need_update = false;
139 auto enabled = item_info_->info_->enabled();
140 if (enabled) {
141 if (lbl_enabled_->text() != kDisplayPluginEnabled) {
142 need_update = true;
143 }
144 }
145 else {
146 if (lbl_enabled_->text() != kDisplayPluginDisabled) {
147 need_update = true;
148 }
149 }
150 if (need_update) {
151 UpdatePluginStatus(enabled);
152 }
153
154 }
155
156 void StPluginItemWidget::UpdatePluginStatus(bool enabled) {
157 if (enabled) {

Callers 1

UpdateItemStatusMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected