mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-18 19:23:43 +01:00
Update SettingsViewController.swift
Signed-off-by: Stephen <158498287+0-Blu@users.noreply.github.com>
This commit is contained in:
@@ -541,7 +541,7 @@ extension SettingsViewController
|
|||||||
switch section
|
switch section
|
||||||
{
|
{
|
||||||
case .signIn where self.activeTeam != nil: return 1.0
|
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:
|
case .signIn, .patreon, .appRefresh:
|
||||||
let height = self.preferredHeight(for: self.prototypeHeaderFooterView, in: section, isHeader: false)
|
let height = self.preferredHeight(for: self.prototypeHeaderFooterView, in: section, isHeader: false)
|
||||||
return height
|
return height
|
||||||
@@ -608,24 +608,24 @@ extension SettingsViewController
|
|||||||
})
|
})
|
||||||
|
|
||||||
// Option 3: Mail
|
// Option 3: Mail
|
||||||
alertController.addAction(UIAlertAction(title: "Send Email", style: .default) { _ in
|
// alertController.addAction(UIAlertAction(title: "Send Email", style: .default) { _ in
|
||||||
if MFMailComposeViewController.canSendMail() {
|
// if MFMailComposeViewController.canSendMail() {
|
||||||
let mailViewController = MFMailComposeViewController()
|
// let mailViewController = MFMailComposeViewController()
|
||||||
mailViewController.mailComposeDelegate = self
|
// mailViewController.mailComposeDelegate = self
|
||||||
mailViewController.setToRecipients(["support@sidestore.io"])
|
// mailViewController.setToRecipients(["support@sidestore.io"])
|
||||||
|
//
|
||||||
if let version = Bundle.main.object(forInfoDictionaryKey: "CFBundleShortVersionString") as? String {
|
// if let version = Bundle.main.object(forInfoDictionaryKey: "CFBundleShortVersionString") as? String {
|
||||||
mailViewController.setSubject("SideStore Beta \(version) Feedback")
|
// mailViewController.setSubject("SideStore Beta \(version) Feedback")
|
||||||
} else {
|
// } else {
|
||||||
mailViewController.setSubject("SideStore Beta Feedback")
|
// mailViewController.setSubject("SideStore Beta Feedback")
|
||||||
}
|
// }
|
||||||
|
//
|
||||||
self.present(mailViewController, animated: true, completion: nil)
|
// self.present(mailViewController, animated: true, completion: nil)
|
||||||
} else {
|
// } else {
|
||||||
let toastView = ToastView(text: NSLocalizedString("Cannot Send Mail", comment: ""), detailText: nil)
|
// let toastView = ToastView(text: NSLocalizedString("Cannot Send Mail", comment: ""), detailText: nil)
|
||||||
toastView.show(in: self)
|
// toastView.show(in: self)
|
||||||
}
|
// }
|
||||||
})
|
// })
|
||||||
|
|
||||||
// Cancel action
|
// Cancel action
|
||||||
alertController.addAction(UIAlertAction(title: "Cancel", style: .cancel, handler: nil))
|
alertController.addAction(UIAlertAction(title: "Cancel", style: .cancel, handler: nil))
|
||||||
|
|||||||
Reference in New Issue
Block a user