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

Method SetStatus

src/client/ui/switch_button.cpp:83–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

81 }
82
83 void SwitchButton::SetStatus(bool enabled) {
84 selected = enabled;
85 if (thumb_point_ != 0) {
86 ExecAnimation(selected);
87 }
88 if (left_point_ == 0 && right_point_ == 0) {
89 need_repair_ = true;
90 }
91 qDebug() << "left : " << left_point_ << " right : " << right_point_;
92 }
93
94 void SwitchButton::ExecAnimation(bool selected) {
95 if (selected) {

Callers 6

SubDisplayPanelMethod · 0.45
UpdateStatusMethod · 0.45
SubControlPanelMethod · 0.45
UpdateStatusMethod · 0.45
SubModePanelMethod · 0.45
UpdateStatusMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected