From f8c88c0eac1a03f946289e7e618104a2b51f36e9 Mon Sep 17 00:00:00 2001 From: amddg44 Date: Wed, 17 Apr 2024 12:07:51 +0200 Subject: [PATCH] Tweak to dismiss animation --- DuckDuckGo/AutofillLoginSettingsListViewController.swift | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/DuckDuckGo/AutofillLoginSettingsListViewController.swift b/DuckDuckGo/AutofillLoginSettingsListViewController.swift index 22bdac0f6f..0e18a48aa6 100644 --- a/DuckDuckGo/AutofillLoginSettingsListViewController.swift +++ b/DuckDuckGo/AutofillLoginSettingsListViewController.swift @@ -555,11 +555,11 @@ final class AutofillLoginSettingsListViewController: UIViewController { } else { if viewModel.isAutofillEnabledInSettings || (!viewModel.isAutofillEnabledInSettings && viewModel.hasAccountsSaved) { navigationItem.rightBarButtonItems = [moreBarButtonItem, addBarButtonItem] + moreBarButtonItem.isEnabled = true } else { navigationItem.rightBarButtonItems = [addBarButtonItem] } addBarButtonItem.isEnabled = true - moreBarButtonItem.isEnabled = true } case .noAuthAvailable: navigationItem.rightBarButtonItems = [addBarButtonItem] @@ -904,9 +904,9 @@ extension AutofillLoginSettingsListViewController: ImportPasswordsViewController if let settingsVC = self.navigationController?.children.first as? SettingsHostingController { navigationController?.popToRootViewController(animated: false) settingsVC.viewModel.presentLegacyView(.sync) - } else if let presentingViewController = self.presentingViewController as? MainViewController { - dismiss(animated: false) { - presentingViewController.segueToSettingsSync() + } else if let mainVC = self.presentingViewController as? MainViewController { + dismiss(animated: true) { + mainVC.segueToSettingsSync() } } }