Fix crash on "Report issue"
This commit is contained in:
parent
1b5e123fa6
commit
eea5486563
|
@ -60,6 +60,8 @@ extension ReportIssueButton: View {
|
|||
}
|
||||
|
||||
private extension ReportIssueButton {
|
||||
|
||||
@MainActor
|
||||
func sendEmail() {
|
||||
Task {
|
||||
isPending = true
|
||||
|
|
|
@ -37,16 +37,18 @@ extension ReportIssueButton: View {
|
|||
}
|
||||
|
||||
private extension ReportIssueButton {
|
||||
|
||||
@MainActor
|
||||
func sendEmail() {
|
||||
Task {
|
||||
guard let service = NSSharingService(named: .composeEmail) else {
|
||||
isUnableToEmail = true
|
||||
return
|
||||
}
|
||||
isPending = true
|
||||
defer {
|
||||
isPending = false
|
||||
}
|
||||
guard let service = NSSharingService(named: .composeEmail) else {
|
||||
isUnableToEmail = true
|
||||
return
|
||||
}
|
||||
let issue = await Issue.withMetadata(.init(
|
||||
configuration: .shared,
|
||||
versionString: BundleConfiguration.mainVersionString,
|
||||
|
|
Loading…
Reference in New Issue