Removed old code from imap setup dialogs pages.

This commit is contained in:
Burak Kaan Köse
2024-06-21 02:58:12 +02:00
parent e009bebfaf
commit 8e97c1e9e8
2 changed files with 1 additions and 16 deletions

View File

@@ -15,8 +15,6 @@ namespace Wino.Views.ImapSetup
{
public sealed partial class AdvancedImapSetupPage : Page
{
private string _protocolLog;
public List<ImapAuthenticationMethodModel> AvailableAuthenticationMethods { get; } = new List<ImapAuthenticationMethodModel>()
{
new ImapAuthenticationMethodModel(Core.Domain.Enums.ImapAuthenticationMethod.Auto, Translator.ImapAuthenticationMethod_Auto),

View File

@@ -17,7 +17,6 @@ namespace Wino.Views.ImapSetup
{
public sealed partial class WelcomeImapSetupPage : Page
{
private ImapConnectionFailedPackage failedPackage;
private readonly IAutoDiscoveryService _autoDiscoveryService = App.Current.Services.GetService<IAutoDiscoveryService>();
public WelcomeImapSetupPage()
@@ -85,20 +84,8 @@ namespace Wino.Views.ImapSetup
Email = AddressBox.Text
};
if (failedPackage != null)
{
// Go to advanced settings with updated minimal settings.
failedPackage.Settings.UserMinimalSettings = latestMinimalSettings;
WeakReferenceMessenger.Default.Send(new ImapSetupNavigationRequested(typeof(AdvancedImapSetupPage), failedPackage.Settings));
}
else
{
// Go to advanced page.
WeakReferenceMessenger.Default.Send(new ImapSetupNavigationRequested(typeof(AdvancedImapSetupPage), latestMinimalSettings));
}
WeakReferenceMessenger.Default.Send(new ImapSetupNavigationRequested(typeof(AdvancedImapSetupPage), latestMinimalSettings));
}
}
}