Skip to content

Commit

Permalink
Abridge entry when PlaceName is empty (#338)
Browse files Browse the repository at this point in the history
  • Loading branch information
wilyt1 authored Sep 4, 2024
1 parent fce0f0b commit 0cac041
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Cmdr/CmdrClient/CmdrInterface/Window.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0cac041

Please sign in to comment.