From 437731749fc817d0abd80d05a8e336d5fb3dd0ea Mon Sep 17 00:00:00 2001 From: choco Date: Sun, 26 Oct 2025 17:34:17 +0100 Subject: [PATCH 1/2] pair button now has additional checks to show if the user isnt directly paired, and only shows if your own lightfinder is on --- LightlessSync/Services/ContextMenuService.cs | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/LightlessSync/Services/ContextMenuService.cs b/LightlessSync/Services/ContextMenuService.cs index 97bfc17..42ab72a 100644 --- a/LightlessSync/Services/ContextMenuService.cs +++ b/LightlessSync/Services/ContextMenuService.cs @@ -98,7 +98,7 @@ internal class ContextMenuService : IHostedService if (targetData == null || targetData.Address == nint.Zero) return; - //Check if user is paired or is own. + //Check if user is directly paired or is own. if (VisibleUserIds.Any(u => u == target.TargetObjectId) || _clientState.LocalPlayer.GameObjectId == target.TargetObjectId) return; @@ -113,10 +113,15 @@ internal class ContextMenuService : IHostedService if (!_configService.Current.EnableRightClickMenus) return; + + //Check if lightfinder is on. + if (!_configService.Current.BroadcastEnabled) + return; + args.AddMenuItem(new MenuItem { - Name = "Send Pair Request", + Name = "Send Direct Pair Request", PrefixChar = 'L', UseDefaultPrefix = false, PrefixColor = 708, @@ -159,7 +164,7 @@ internal class ContextMenuService : IHostedService } } - private HashSet VisibleUserIds => [.. _pairManager.GetOnlineUserPairs() + private HashSet VisibleUserIds => [.. _pairManager.DirectPairs .Where(u => u.IsVisible && u.PlayerCharacterId != uint.MaxValue) .Select(u => (ulong)u.PlayerCharacterId)]; From cabc4ec0fe2df6082c8a020421960500d33794c9 Mon Sep 17 00:00:00 2001 From: choco Date: Tue, 28 Oct 2025 00:57:49 +0100 Subject: [PATCH 2/2] removed lightfinder on check --- LightlessSync/Services/ContextMenuService.cs | 5 ----- 1 file changed, 5 deletions(-) diff --git a/LightlessSync/Services/ContextMenuService.cs b/LightlessSync/Services/ContextMenuService.cs index 42ab72a..464fee1 100644 --- a/LightlessSync/Services/ContextMenuService.cs +++ b/LightlessSync/Services/ContextMenuService.cs @@ -113,11 +113,6 @@ internal class ContextMenuService : IHostedService if (!_configService.Current.EnableRightClickMenus) return; - - //Check if lightfinder is on. - if (!_configService.Current.BroadcastEnabled) - return; - args.AddMenuItem(new MenuItem {