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

Method CheckOffSiteUpdate

src/render_panel/gr_workspace.cpp:922–937  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

920 }
921
922 void GrWorkspace::CheckOffSiteUpdate() {
923 auto pc = grApp->GetCompanion();
924 if (!pc) {
925 return;
926 }
927 if (pc->HasUpdateForOffSite()) {
928 app_->GetContext()->PostUITask([=, this]() {
929 jump_to_github_widget_->show();
930 });
931 }
932 else {
933 app_->GetContext()->PostUITask([=, this]() {
934 jump_to_github_widget_->hide();
935 });
936 }
937 }
938}

Callers

nothing calls this directly

Calls 3

GetCompanionMethod · 0.80
PostUITaskMethod · 0.45
GetContextMethod · 0.45

Tested by

no test coverage detected