Nil not empty string
This commit is contained in:
parent
fb4711a5e8
commit
bace5c81ec
1 changed files with 2 additions and 2 deletions
|
@ -90,7 +90,7 @@ function updateHomebrewMenubar()
|
|||
homebrewMenubar:setTitle(string.format(' %s', numOutdated))
|
||||
homebrewMenubar:setTooltip(outdated)
|
||||
else
|
||||
homebrewMenubar:setTitle('')
|
||||
homebrewMenubar:setTitle(nil)
|
||||
homebrewMenubar:setTooltip('Up to date')
|
||||
end
|
||||
end
|
||||
|
@ -124,7 +124,7 @@ function updateSlackMenubar()
|
|||
local label = v:attributeValue('AXStatusLabel') or '0'
|
||||
|
||||
if label == '0' then
|
||||
slackMenubar:setTitle('')
|
||||
slackMenubar:setTitle(nil)
|
||||
slackMenubar:setTooltip('No unread messages')
|
||||
else
|
||||
slackMenubar:setTitle(string.format(' %s', label))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue