Hide settings link on macos (#1681)

This commit is contained in:
Oleg 2023-11-20 11:27:58 +03:00 committed by GitHub
parent cc03465956
commit 534b098ca6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -159,10 +159,12 @@ struct SettingsTabs: View {
NavigationLink(destination: TranslationSettingsView()) {
Label("settings.general.translate", systemImage: "captions.bubble")
}
#if !targetEnvironment(macCatalyst)
Link(destination: URL(string: UIApplication.openSettingsURLString)!) {
Label("settings.system", systemImage: "gear")
}
.tint(theme.labelColor)
#endif
}
.listRowBackground(theme.primaryBackgroundColor)
}