tags: when only one screen, don't display tag names

With the addition of icons, tag list became a bit long. If we have
only one screen, don't display names.
This commit is contained in:
Vincent Bernat 2012-07-29 20:29:38 +02:00
parent 1c96367c6a
commit 73b86a65a5

View file

@ -30,7 +30,11 @@ for i = 1, #tags do
-- Name
config.tags[tags[i].name] = tags[i]
if tags[i].name ~= tostring(i) then
tags[i].name = tostring(i) .. "" .. tags[i].name
if screen.count() > 1 then
tags[i].name = tostring(i) .. "" .. tags[i].name
else
tags[i].name = tostring(i)
end
end
-- Properties