Fixed application label

This commit is contained in:
Luca Deri 2022-02-16 17:03:57 +01:00
parent 5685a9d3e0
commit 0813470eb7
2 changed files with 7 additions and 3 deletions

View file

@ -1531,13 +1531,17 @@ end
-- #################################
function getApplicationLabel(name)
function getApplicationLabel(name, maxlen)
local icon = getApplicationIcon(name)
if(maxlen == nil) then
maxlen = 12
end
-- Do not convert to upper case, keep the nDPI case
--name = name:gsub("^%l", string.upper)
return(icon.." "..shortenString(name, 12))
return(icon.." "..shortenString(name, maxlen))
end
-- #################################