From 5acee0cf41dc7318400b595daa6f2e484342c259 Mon Sep 17 00:00:00 2001 From: Dmitri Bogomolov <4glitch@gmail.com> Date: Sat, 8 May 2021 22:16:53 +0300 Subject: [PATCH] Remove redundant unicode() in plugins.indicator_libmessaging --- src/plugins/indicator_libmessaging.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/plugins/indicator_libmessaging.py b/src/plugins/indicator_libmessaging.py index b471d2ef..4cd583e3 100644 --- a/src/plugins/indicator_libmessaging.py +++ b/src/plugins/indicator_libmessaging.py @@ -23,9 +23,9 @@ class IndicatorLibmessaging(object): return self._menu = { - 'send': unicode(_translate('MainWindow', 'Send')), - 'messages': unicode(_translate('MainWindow', 'Messages')), - 'subscriptions': unicode(_translate('MainWindow', 'Subscriptions')) + 'send': _translate('MainWindow', 'Send'), + 'messages': _translate('MainWindow', 'Messages'), + 'subscriptions': _translate('MainWindow', 'Subscriptions') } self.new_message_item = self.new_broadcast_item = None @@ -45,12 +45,11 @@ class IndicatorLibmessaging(object): 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 """ for source, count in zip( - ('messages', 'subscriptions'), - self.form.getUnread() + ('messages', 'subscriptions'), self.form.getUnread() ): if count > 0: if self.app.has_source(source):