Changed display name of ZPush Accounts to the STMP address, as it defaulted to full name, which may be in multiple accounts

This commit is contained in:
Patrick Simpson 2017-06-15 13:10:42 +02:00
parent 5b67b4c16f
commit 4b2795d7f4
2 changed files with 2 additions and 2 deletions

View File

@ -90,7 +90,7 @@ namespace Acacia.Features.DebugSupport
// Add accounts
foreach (ZPushAccount account in ThisAddIn.Instance.Watcher.Accounts.GetAccounts())
{
PropertyDescriptor p = new CustomPropertyDescriptor<ZPushAccount, DebugInfo>(account.DisplayName, DebugCategory.Accounts, account);
PropertyDescriptor p = new CustomPropertyDescriptor<ZPushAccount, DebugInfo>(account.Account.DisplayName, DebugCategory.Accounts, account);
properties.Add(p);
}

View File

@ -46,7 +46,7 @@ namespace Acacia.ZPush
[Browsable(false)]
public IAccount Account { get { return _account; } }
public string DisplayName { get { return _account.DisplayName; } }
public string DisplayName { get { return _account.SmtpAddress; } }
public string DeviceId { get { return _account.DeviceId; } }
[Browsable(false)]