Skip to content

Commit

Permalink
fix: Do not present syncDiscovery for macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
Lnamw committed May 8, 2024
1 parent 9c987a8 commit 7870185
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions Mail/Views/SplitView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -124,11 +124,13 @@ struct SplitView: View {
}
}
.discoveryPresenter(isPresented: $mainViewState.isShowingSyncDiscovery) {
DiscoveryView(item: .syncDiscovery) {
UserDefaults.shared.shouldPresentSyncDiscovery = false
} completionHandler: { willSync in
guard willSync else { return }
mainViewState.isShowingSyncProfile = true
if !platformDetector.isMac {
DiscoveryView(item: .syncDiscovery) {
UserDefaults.shared.shouldPresentSyncDiscovery = false
} completionHandler: { willSync in
guard willSync else { return }
mainViewState.isShowingSyncProfile = true
}
}
}
.discoveryPresenter(isPresented: $mainViewState.isShowingSetAppAsDefaultDiscovery) {
Expand Down

0 comments on commit 7870185

Please sign in to comment.