Skip to content
Snippets Groups Projects
Commit 9cc7df89 authored by Philipp Hörist's avatar Philipp Hörist
Browse files

StatusIcon: Add fallback for account label

Fixes #8901
parent fa15baf1
No related branches found
No related tags found
No related merge requests found
......@@ -245,7 +245,7 @@ class StatusIcon:
for account in accounts_list:
account_label = app.config.get_per(
'accounts', account, 'account_label')
'accounts', account, 'account_label') or account
if app.account_is_connected(account):
# for chat_with
item = Gtk.MenuItem.new_with_label(
......@@ -291,7 +291,7 @@ class StatusIcon:
for account in accounts_list:
account_label = app.config.get_per(
'accounts', account, 'account_label')
'accounts', account, 'account_label') or account
if app.connections[account].is_zeroconf or \
not app.account_is_connected(account):
continue
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment