Remove redundant unicode() in plugins.indicator_libmessaging
This commit is contained in:
parent
e57a4fa7a9
commit
5acee0cf41
|
@ -23,9 +23,9 @@ class IndicatorLibmessaging(object):
|
||||||
return
|
return
|
||||||
|
|
||||||
self._menu = {
|
self._menu = {
|
||||||
'send': unicode(_translate('MainWindow', 'Send')),
|
'send': _translate('MainWindow', 'Send'),
|
||||||
'messages': unicode(_translate('MainWindow', 'Messages')),
|
'messages': _translate('MainWindow', 'Messages'),
|
||||||
'subscriptions': unicode(_translate('MainWindow', 'Subscriptions'))
|
'subscriptions': _translate('MainWindow', 'Subscriptions')
|
||||||
}
|
}
|
||||||
|
|
||||||
self.new_message_item = self.new_broadcast_item = None
|
self.new_message_item = self.new_broadcast_item = None
|
||||||
|
@ -45,12 +45,11 @@ class IndicatorLibmessaging(object):
|
||||||
|
|
||||||
def show_unread(self, draw_attention=False):
|
def show_unread(self, draw_attention=False):
|
||||||
"""
|
"""
|
||||||
show the number of unread messages and subscriptions
|
Show the number of unread messages and subscriptions
|
||||||
on the messaging menu
|
on the messaging menu
|
||||||
"""
|
"""
|
||||||
for source, count in zip(
|
for source, count in zip(
|
||||||
('messages', 'subscriptions'),
|
('messages', 'subscriptions'), self.form.getUnread()
|
||||||
self.form.getUnread()
|
|
||||||
):
|
):
|
||||||
if count > 0:
|
if count > 0:
|
||||||
if self.app.has_source(source):
|
if self.app.has_source(source):
|
||||||
|
|
Reference in New Issue
Block a user