From 0cac0410e78f8a232e10f87acfa2945e424cd077 Mon Sep 17 00:00:00 2001 From: Wil <63251107+wilyt1@users.noreply.github.com> Date: Wed, 4 Sep 2024 18:01:13 -0400 Subject: [PATCH] Abridge entry when PlaceName is empty (#338) --- Cmdr/CmdrClient/CmdrInterface/Window.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Cmdr/CmdrClient/CmdrInterface/Window.lua b/Cmdr/CmdrClient/CmdrInterface/Window.lua index 2ee222fc..38b29ae9 100644 --- a/Cmdr/CmdrClient/CmdrInterface/Window.lua +++ b/Cmdr/CmdrClient/CmdrInterface/Window.lua @@ -26,7 +26,8 @@ Line.Parent = nil -- Update the text entry label function Window:UpdateLabel() - Entry.TextLabel.Text = Player.Name .. "@" .. self.Cmdr.PlaceName .. "$" + Entry.TextLabel.Text = + `{Player.Name}{if self.Cmdr.PlaceName and self.Cmdr.PlaceName ~= "" then `@{self.Cmdr.PlaceName}` else ""}$` end -- Get the text entry label