From bcc241518c5fe82c78812517ecb936e2fced7a9f Mon Sep 17 00:00:00 2001 From: Stephen <158498287+0-Blu@users.noreply.github.com> Date: Tue, 13 Aug 2024 14:15:31 -0400 Subject: [PATCH] Update SettingsViewController.swift Signed-off-by: Stephen <158498287+0-Blu@users.noreply.github.com> --- .../Settings/SettingsViewController.swift | 38 +++++++++---------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/AltStore/Settings/SettingsViewController.swift b/AltStore/Settings/SettingsViewController.swift index e3111fdc..7ba4d622 100644 --- a/AltStore/Settings/SettingsViewController.swift +++ b/AltStore/Settings/SettingsViewController.swift @@ -541,7 +541,7 @@ extension SettingsViewController switch section { case .signIn where self.activeTeam != nil: return 1.0 - case .account where self.activeTeam == nil: return 1.0 + case .account where self.activeTeam == nil: return 1.0 case .signIn, .patreon, .appRefresh: let height = self.preferredHeight(for: self.prototypeHeaderFooterView, in: section, isHeader: false) return height @@ -608,24 +608,24 @@ extension SettingsViewController }) // Option 3: Mail - alertController.addAction(UIAlertAction(title: "Send Email", style: .default) { _ in - if MFMailComposeViewController.canSendMail() { - let mailViewController = MFMailComposeViewController() - mailViewController.mailComposeDelegate = self - mailViewController.setToRecipients(["support@sidestore.io"]) - - if let version = Bundle.main.object(forInfoDictionaryKey: "CFBundleShortVersionString") as? String { - mailViewController.setSubject("SideStore Beta \(version) Feedback") - } else { - mailViewController.setSubject("SideStore Beta Feedback") - } - - self.present(mailViewController, animated: true, completion: nil) - } else { - let toastView = ToastView(text: NSLocalizedString("Cannot Send Mail", comment: ""), detailText: nil) - toastView.show(in: self) - } - }) +// alertController.addAction(UIAlertAction(title: "Send Email", style: .default) { _ in +// if MFMailComposeViewController.canSendMail() { +// let mailViewController = MFMailComposeViewController() +// mailViewController.mailComposeDelegate = self +// mailViewController.setToRecipients(["support@sidestore.io"]) +// +// if let version = Bundle.main.object(forInfoDictionaryKey: "CFBundleShortVersionString") as? String { +// mailViewController.setSubject("SideStore Beta \(version) Feedback") +// } else { +// mailViewController.setSubject("SideStore Beta Feedback") +// } +// +// self.present(mailViewController, animated: true, completion: nil) +// } else { +// let toastView = ToastView(text: NSLocalizedString("Cannot Send Mail", comment: ""), detailText: nil) +// toastView.show(in: self) +// } +// }) // Cancel action alertController.addAction(UIAlertAction(title: "Cancel", style: .cancel, handler: nil))