Repo // Disable DevZone to any macOS earlier than 10.14 Mojave.

This commit is contained in:
ShikiSuen 2022-08-18 16:49:42 +08:00
parent 2316309d4d
commit a600021f60
2 changed files with 2 additions and 2 deletions

View File

@ -683,7 +683,7 @@ public enum mgrPrefs {
extension mgrPrefs { extension mgrPrefs {
static func fixOddPreferences() { static func fixOddPreferences() {
// macOS 10.11 IMK // macOS 10.11 IMK
if #unavailable(macOS 10.13) { mgrPrefs.useIMKCandidateWindow = false } if #unavailable(macOS 10.14) { mgrPrefs.useIMKCandidateWindow = false }
if #unavailable(macOS 10.15) { if #unavailable(macOS 10.15) {
handleDefaultCandidateFontsByLangIdentifier = false handleDefaultCandidateFontsByLangIdentifier = false
shouldAlwaysUseShiftKeyAccommodation = false shouldAlwaysUseShiftKeyAccommodation = false

View File

@ -336,7 +336,7 @@ extension ctlPrefWindow: NSToolbarDelegate {
} }
var toolbarIdentifiers: [NSToolbarItem.Identifier] { var toolbarIdentifiers: [NSToolbarItem.Identifier] {
if #available(macOS 10.13, *) { if #available(macOS 10.14, *) {
return [.ofGeneral, .ofExperience, .ofDictionary, .ofKeyboard, .ofDevZone] return [.ofGeneral, .ofExperience, .ofDictionary, .ofKeyboard, .ofDevZone]
} }
return [.ofGeneral, .ofExperience, .ofDictionary, .ofKeyboard] return [.ofGeneral, .ofExperience, .ofDictionary, .ofKeyboard]