Skip to content

Commit 6d374c4

Browse files
committed
Update SquadMgr.cpp
1 parent 9b1af49 commit 6d374c4

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

src/SquadMgr/SquadMgr.cpp

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -489,9 +489,16 @@ void CSquadMgr::Render()
489489
RenderIcon(sz, &G::Textures[ETextures::TagLieutenant], "TEX_TAG_LIEUTENANT", "Lieutenant", IDB_TAG_LIEUTENANT);
490490
ImGui::SameLine();
491491
}
492-
if (ImGui::Button(player.Member.AccountName))
492+
if (player.KPMEInfo->ProofURL.empty())
493493
{
494-
ShellExecute(NULL, "open", player.KPMEInfo->ProofURL.c_str(), 0, 0, 0);
494+
ImGui::Text(player.Member.AccountName);
495+
}
496+
else
497+
{
498+
if (ImGui::Button(player.Member.AccountName))
499+
{
500+
ShellExecute(NULL, "open", player.KPMEInfo->ProofURL.c_str(), 0, 0, 0);
501+
}
495502
}
496503
PlayerLeftTooltip(player.HasLeft, secondsSinceLeft);
497504

0 commit comments

Comments
 (0)