Skip to content

Commit

Permalink
Tweak to dismiss animation
Browse files Browse the repository at this point in the history
  • Loading branch information
amddg44 committed Apr 17, 2024
1 parent a35be7b commit f8c88c0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions DuckDuckGo/AutofillLoginSettingsListViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down Expand Up @@ -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()
}
}
}
Expand Down

0 comments on commit f8c88c0

Please sign in to comment.