Skip to content

Commit

Permalink
fix: Remove sync from settings for macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
Lnamw committed May 8, 2024
1 parent 7870185 commit 9247d72
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions Mail/Views/Settings/SettingsView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -89,17 +89,19 @@ struct SettingsView: View {

// MARK: Sync Calendar/Contacts

Button {
matomo.track(eventWithCategory: .syncAutoConfig, name: "openFromSettings")
if platformDetector.isMac {
isShowingSyncProfile = true
} else {
mainViewState.isShowingSyncProfile = true
if !platformDetector.isMac {
Button {
matomo.track(eventWithCategory: .syncAutoConfig, name: "openFromSettings")
if platformDetector.isMac {
isShowingSyncProfile = true
} else {
mainViewState.isShowingSyncProfile = true
}
} label: {
SettingsSubMenuLabel(title: MailResourcesStrings.Localizable.syncCalendarsAndContactsTitle)
}
} label: {
SettingsSubMenuLabel(title: MailResourcesStrings.Localizable.syncCalendarsAndContactsTitle)
.buttonStyle(.plain)
}
.buttonStyle(.plain)

// MARK: AI Writer

Expand Down

0 comments on commit 9247d72

Please sign in to comment.