Philipp Hörist pushed to branch master at gajim / gajim
Commits:
87bbf473 by Daniel Brötzmann at 2019-04-26T14:45:16Z
MessageWindow: When grouped by type, show contact's name if only one
conversation
When chat windows are grouped by type, the window title is either Chats or
Group Chats.
If there is only one conversation of either type, the window's title now
shows the
contact's or group chat's name.
- - - - -
1 changed file:
- gajim/message_window.py
Changes:
=====================================
gajim/message_window.py
=====================================
@@ -520,8 +520,12 @@ class MessageWindow:
# Show the plural form since number of tabs > 1
if self.type_ == 'chat':
label = Q_('?Noun:Chats')
+ if self.get_num_controls() == 1:
+ label = name
elif self.type_ == 'gc':
- label = _('Groupchats')
+ label = _('Group Chats')
+ if self.get_num_controls() == 1:
+ label = name
else:
label = _('Private Chats')
elif window_mode == MessageWindowMgr.ONE_MSG_WINDOW_ALWAYS_WITH_ROSTER:
View it on GitLab:
https://dev.gajim.org/gajim/gajim/commit/87bbf4738a3621bb70c212dc5dbcb580b9557a2a
--
View it on GitLab:
https://dev.gajim.org/gajim/gajim/commit/87bbf4738a3621bb70c212dc5dbcb580b9557a2a
You're receiving this email because of your account on dev.gajim.org.
_______________________________________________
Commits mailing list
[email protected]
https://lists.gajim.org/cgi-bin/listinfo/commits