From ff73c016eb4f1f67ac0ce2341d1531c3f81abcd2 Mon Sep 17 00:00:00 2001 From: rootdarkarchon Date: Thu, 20 Apr 2023 11:53:42 +0200 Subject: [PATCH] fixes for vfx display in ui --- MareSynchronos/UI/Components/DrawUserPair.cs | 4 ++-- MareSynchronos/UI/Components/GroupPanel.cs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/MareSynchronos/UI/Components/DrawUserPair.cs b/MareSynchronos/UI/Components/DrawUserPair.cs index ba534eb..2b6450b 100644 --- a/MareSynchronos/UI/Components/DrawUserPair.cs +++ b/MareSynchronos/UI/Components/DrawUserPair.cs @@ -229,8 +229,8 @@ public class DrawUserPair : DrawPairBase } var isDisableVFX = entry.UserPair!.OwnPermissions.IsDisableVFX(); - string disableVFXText = isDisableAnims ? "Enable VFX sync" : "Disable VFX sync"; - var disableVFXIcon = isDisableAnims ? FontAwesomeIcon.Sun : FontAwesomeIcon.Circle; + string disableVFXText = isDisableVFX ? "Enable VFX sync" : "Disable VFX sync"; + var disableVFXIcon = isDisableVFX ? FontAwesomeIcon.Sun : FontAwesomeIcon.Circle; if (UiSharedService.IconTextButton(disableVFXIcon, disableVFXText)) { var permissions = entry.UserPair.OwnPermissions; diff --git a/MareSynchronos/UI/Components/GroupPanel.cs b/MareSynchronos/UI/Components/GroupPanel.cs index 9187f48..e56db5f 100644 --- a/MareSynchronos/UI/Components/GroupPanel.cs +++ b/MareSynchronos/UI/Components/GroupPanel.cs @@ -626,7 +626,7 @@ internal sealed class GroupPanel + Environment.NewLine + "Note: this setting does not apply to individual pairs that are also in the syncshell."); var vfxText = userVFXDisabled ? "Enable VFX sync" : "Disable VFX sync"; - if (UiSharedService.IconTextButton(userAnimIcon, vfxText)) + if (UiSharedService.IconTextButton(userVFXIcon, vfxText)) { ImGui.CloseCurrentPopup(); var perm = groupDto.GroupUserPermissions;