Commit 06c4ce60 authored by Philipp Hörist's avatar Philipp Hörist

Show correct account lable in tooltip

Fixes #9065
parent e0e3b960
......@@ -1247,8 +1247,13 @@ def get_accounts_info():
message = message.strip()
if message != '':
single_line += ': ' + message
accounts.append({'name': account, 'status_line': single_line,
'show': status, 'message': message})
account_label = app.config.get_per(
'accounts', account, 'account_label')
accounts.append({'name': account,
'account_label': account_label or account,
'status_line': single_line,
'show': status,
'message': message})
return accounts
def get_current_show(account):
......
......@@ -150,11 +150,11 @@ class NotificationAreaTooltip(StatusTable):
show_lock = False
if message:
self.add_status_row(file_path, acct['show'],
GLib.markup_escape_text(acct['name']) + ' - ' + message,
GLib.markup_escape_text(acct['account_label']) + ' - ' + message,
show_lock=show_lock, indent=False)
else:
self.add_status_row(file_path, acct['show'],
GLib.markup_escape_text(acct['name']), show_lock=show_lock,
GLib.markup_escape_text(acct['account_label']), show_lock=show_lock,
indent=False)
for line in acct['event_lines']:
self.add_text_row(' ' + line, 1)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment