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

Method UpdateUsername

src/render_panel/gr_workspace.cpp:754–762  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

752 }
753
754 void GrWorkspace::UpdateUsername() {
755 if (user_mgr_->IsLoggedIn()) {
756 lbl_username_->SetTextId("");
757 lbl_username_->setText(user_mgr_->GetUsername().c_str());
758 }
759 else {
760 lbl_username_->SetTextId("id_guest");
761 }
762 }
763
764 void GrWorkspace::ShowUserActions() {
765 auto menu = new QMenu();

Callers 1

ProcessUserActionMethod · 0.95

Calls 2

IsLoggedInMethod · 0.80
GetUsernameMethod · 0.45

Tested by

no test coverage detected