| 5231 | | if change_title_allowed: |
| 5232 | | start = '' |
| 5233 | | for account in gajim.connections: |
| 5234 | | # Count events in roster title only if we don't auto open them |
| 5235 | | if not helpers.allow_popup_window(account): |
| 5236 | | nb_unread += gajim.events.get_nb_events(['chat', 'normal', |
| 5237 | | 'file-request', 'file-error', 'file-completed', |
| 5238 | | 'file-request-error', 'file-send-error', 'file-stopped', |
| 5239 | | 'printed_chat'], account) |
| 5240 | | if nb_unread > 1: |
| 5241 | | start = '[' + str(nb_unread) + '] ' |
| 5242 | | elif nb_unread == 1: |
| 5243 | | start = '* ' |
| 5244 | | self.window.set_title(start + 'Gajim') |
| | 5241 | start = '' |
| | 5242 | for account in gajim.connections: |
| | 5243 | # Count events in roster title only if we don't auto open them |
| | 5244 | if not helpers.allow_popup_window(account): |
| | 5245 | nb_unread += gajim.events.get_nb_events(['chat', 'normal', |
| | 5246 | 'file-request', 'file-error', 'file-completed', |
| | 5247 | 'file-request-error', 'file-send-error', 'file-stopped', |
| | 5248 | 'printed_chat'], account) |
| | 5249 | if nb_unread > 1: |
| | 5250 | start = '[' + str(nb_unread) + '] ' |
| | 5251 | elif nb_unread == 1: |
| | 5252 | start = '* ' |
| | 5253 | self.window.set_title(start + 'Gajim') |