dont check location when target is offline

This commit is contained in:
Tsubasahane
2025-12-30 14:42:02 +08:00
parent f8752fcb4d
commit ca7375b9c3

View File

@@ -642,9 +642,10 @@ public class DrawUserPair
if (ImGui.IsItemHovered())
{
ImGui.BeginTooltip();
if (shareLocation)
if (_pair.IsOnline)
{
if (_pair.IsOnline)
if (shareLocation)
{
if (!string.IsNullOrEmpty(location))
{
@@ -659,12 +660,12 @@ public class DrawUserPair
}
else
{
ImGui.TextUnformatted("User not online. (´・ω・`)?");
ImGui.TextUnformatted("NOT Sharing location with you. o(TヘTo)");
}
}
else
{
ImGui.TextUnformatted("NOT Sharing location with you. o(TヘTo)");
ImGui.TextUnformatted("User not online. (´・ω・`)?");
}
ImGui.Separator();