From b776f754f0c109c43ac74ce34e508697f9b05161 Mon Sep 17 00:00:00 2001 From: xPumaa <35280763+xPumaa@users.noreply.github.com> Date: Fri, 7 Oct 2022 20:58:40 +0200 Subject: [PATCH] Displaying the correct icon to match the text --- MareSynchronos/UI/GroupPanel.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/MareSynchronos/UI/GroupPanel.cs b/MareSynchronos/UI/GroupPanel.cs index 08baab6..88cb481 100644 --- a/MareSynchronos/UI/GroupPanel.cs +++ b/MareSynchronos/UI/GroupPanel.cs @@ -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);