Displaying the correct icon to match the text

This commit is contained in:
xPumaa
2022-10-07 20:58:40 +02:00
parent a20e720cbb
commit b776f754f0

View File

@@ -446,7 +446,8 @@ namespace MareSynchronos.UI
if (isOwner)
{
if (UiShared.IconTextButton(lockedIcon, invitesEnabled ? "Lock Syncshell" : "Unlock Syncshell"))
var changedToIcon = !invitesEnabled ? FontAwesomeIcon.LockOpen : FontAwesomeIcon.Lock;
if (UiShared.IconTextButton(changedToIcon, invitesEnabled ? "Lock Syncshell" : "Unlock Syncshell"))
{
ImGui.CloseCurrentPopup();
_ = _apiController.SendGroupChangeInviteState(entry.GID, !entry.InvitesEnabled ?? true);