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

Method UpdateStatus

src/client/ui/float_controller_panel.cpp:699–718  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

697 }
698
699 void FloatControllerPanel::UpdateStatus(const MsgClientFloatControllerPanelUpdate& msg) {
700 if (MsgClientFloatControllerPanelUpdate::EUpdate::kAudioStatus == msg.update_type_) {
701 auto settings = Settings::Instance();
702 if (settings->IsAudioEnabled()) {
703 audio_btn_->SwitchToSelectedState();
704 }
705 else {
706 audio_btn_->SwitchToNormalState();
707 }
708 }
709 else if (MsgClientFloatControllerPanelUpdate::EUpdate::kMediaRecordStatus == msg.update_type_) {
710 bool res = context_->GetRecording();
711 if (res) {
712 media_record_lab_->setText(tcTr("id_stop_recording"));
713 }
714 else {
715 media_record_lab_->setText(tcTr("id_screen_recording"));
716 }
717 }
718 }
719
720 void FloatControllerPanel::SetMainControl() {
721 is_main_control_ = true;

Callers

nothing calls this directly

Calls 4

IsAudioEnabledMethod · 0.80
SwitchToSelectedStateMethod · 0.80
SwitchToNormalStateMethod · 0.80
GetRecordingMethod · 0.80

Tested by

no test coverage detected