diff --git a/Mail/Views/Onboarding/OnboardingView.swift b/Mail/Views/Onboarding/OnboardingView.swift index 870638cfe1..4e4b3838de 100644 --- a/Mail/Views/Onboarding/OnboardingView.swift +++ b/Mail/Views/Onboarding/OnboardingView.swift @@ -128,7 +128,7 @@ class LoginHandler: InfomaniakLoginDelegate, ObservableObject { _ = try await AccountManager.instance.createAndSetCurrentAccount(code: code, codeVerifier: verifier) UIApplication.shared.registerForRemoteNotifications() } catch let error as MailError where error == MailError.noMailbox { - //sceneDelegate?.showNoMailboxView() + // sceneDelegate?.showNoMailboxView() } catch { if let previousAccount = previousAccount { AccountManager.instance.switchAccount(newAccount: previousAccount) @@ -241,7 +241,7 @@ struct OnboardingView: View { if UIDevice.current.userInterfaceIdiom == .phone { UIDevice.current .setValue(UIInterfaceOrientation.portrait.rawValue, forKey: "orientation") - // AppDelegate.orientationLock = .portrait + AppDelegate.orientationLock = .portrait UIViewController.attemptRotationToDeviceOrientation() } } diff --git a/Mail/Views/Switch User/AccountListView.swift b/Mail/Views/Switch User/AccountListView.swift index 98648fad38..8e309e6039 100644 --- a/Mail/Views/Switch User/AccountListView.swift +++ b/Mail/Views/Switch User/AccountListView.swift @@ -79,7 +79,7 @@ struct AccountListView: View { isShowingNewAccountView = true } .fullScreenCover(isPresented: $isShowingNewAccountView, onDismiss: { - // AppDelegate.orientationLock = .all + AppDelegate.orientationLock = .all }, content: { OnboardingView(page: 4, isScrollEnabled: false) })