PrefUI // Only enable .langIdentifier for macOS 12 and later.
This commit is contained in:
parent
6fc27788ed
commit
ecd2fe7403
|
@ -33,6 +33,13 @@ struct suiPrefPaneDevZone: View {
|
||||||
}
|
}
|
||||||
}()
|
}()
|
||||||
|
|
||||||
|
var isMontereyOrAbove: Bool = {
|
||||||
|
if #available(macOS 12.0, *) {
|
||||||
|
return true
|
||||||
|
}
|
||||||
|
return false
|
||||||
|
}()
|
||||||
|
|
||||||
var body: some View {
|
var body: some View {
|
||||||
ScrollView {
|
ScrollView {
|
||||||
Preferences.Container(contentWidth: contentWidth) {
|
Preferences.Container(contentWidth: contentWidth) {
|
||||||
|
@ -77,6 +84,7 @@ struct suiPrefPaneDevZone: View {
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
.preferenceDescription().fixedSize(horizontal: false, vertical: true)
|
.preferenceDescription().fixedSize(horizontal: false, vertical: true)
|
||||||
|
.disabled(!isMontereyOrAbove)
|
||||||
Toggle(
|
Toggle(
|
||||||
LocalizedStringKey("Use Shift Key Accommodation in all cases"),
|
LocalizedStringKey("Use Shift Key Accommodation in all cases"),
|
||||||
isOn: $selShouldAlwaysUseShiftKeyAccommodation.onChange {
|
isOn: $selShouldAlwaysUseShiftKeyAccommodation.onChange {
|
||||||
|
|
Loading…
Reference in New Issue