Skip to content

Commit

Permalink
fix: prevent indefinite loading on entities
Browse files Browse the repository at this point in the history
  • Loading branch information
8char committed Aug 14, 2023
1 parent 4a8ab6e commit cbf2406
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions laux/atlasui/libs/configurator/ui/entities/entity.laux
Original file line number Diff line number Diff line change
Expand Up @@ -105,13 +105,11 @@ end

function PANEL:UpdateTitle(size)
size = size or #self.Rows
stopif !IsValid(self.Title)
stopif not IsValid(self.Subtitle)

local name = self.Title:GetText()
name = name:sub(1, 1):lower() .. name:sub(2, #name - 1)
if (size != 1) then
name ..= "s"
end
local name = "entity" -- TODO: Reimplement the title
name = name:sub(1, 1):lower() .. name:sub(2, #name)
name = size > 1 and AtlasUI:ToPlural(name) or name

self.Subtitle:SetText(`${size} ${name}`)
end
Expand Down

0 comments on commit cbf2406

Please sign in to comment.