Couple fixes for beta.
This commit is contained in:
@@ -149,7 +149,7 @@ public partial class SettingOptionsPageViewModel : CoreBaseViewModel
|
||||
switch (account)
|
||||
{
|
||||
case AccountProviderDetailViewModel accountDetails:
|
||||
Messenger.Send(new BreadcrumbNavigationRequested(accountDetails.Account.Name, WinoPage.AccountDetailsPage, accountDetails.Account.Id));
|
||||
Messenger.Send(new BreadcrumbNavigationRequested(GetAccountDetailsTitle(accountDetails.Account), WinoPage.AccountDetailsPage, accountDetails.Account.Id));
|
||||
break;
|
||||
case MergedAccountProviderDetailViewModel mergedAccount:
|
||||
Messenger.Send(new BreadcrumbNavigationRequested(mergedAccount.MergedInbox.Name, WinoPage.MergedAccountDetailsPage, mergedAccount));
|
||||
@@ -201,6 +201,11 @@ public partial class SettingOptionsPageViewModel : CoreBaseViewModel
|
||||
});
|
||||
}
|
||||
|
||||
private static string GetAccountDetailsTitle(MailAccount account)
|
||||
=> !string.IsNullOrWhiteSpace(account?.Address)
|
||||
? string.Format(Translator.SettingsAccountDetails_NavigationTitle, account.Address)
|
||||
: account?.Name ?? Translator.AccountDetailsPage_Title;
|
||||
|
||||
private void InitializeQuickSettings()
|
||||
{
|
||||
_isInitializingSettings = true;
|
||||
|
||||
Reference in New Issue
Block a user