changed emails to email when only 1 unread
This commit is contained in:
parent
3cf43687eb
commit
672caadc77
@ -36,7 +36,7 @@ class MailChecker(object):
|
||||
if not unread:
|
||||
return None
|
||||
|
||||
return {'full_text' : '%d new emails' % unread,
|
||||
return {'full_text' : '%d new email%s' % (unread, ('s' if unread > 1 else '')),
|
||||
'name' : 'newmail',
|
||||
'urgent' : 'true',
|
||||
'color' : self.settings['color']}
|
||||
@ -102,4 +102,4 @@ class MailChecker(object):
|
||||
self.unread_cache = unread
|
||||
self.last_checked = datetime.now()
|
||||
|
||||
return self.unread_cache
|
||||
return self.unread_cache
|
||||
|
Loading…
Reference in New Issue
Block a user