From a600021f60f697c6d01838183867290969e0853b Mon Sep 17 00:00:00 2001 From: ShikiSuen Date: Thu, 18 Aug 2022 16:49:42 +0800 Subject: [PATCH] Repo // Disable DevZone to any macOS earlier than 10.14 Mojave. --- Source/Modules/IMEModules/mgrPrefs.swift | 2 +- Source/WindowControllers/ctlPrefWindow.swift | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Modules/IMEModules/mgrPrefs.swift b/Source/Modules/IMEModules/mgrPrefs.swift index 5f02603d..955c4eea 100644 --- a/Source/Modules/IMEModules/mgrPrefs.swift +++ b/Source/Modules/IMEModules/mgrPrefs.swift @@ -683,7 +683,7 @@ public enum mgrPrefs { extension mgrPrefs { static func fixOddPreferences() { // 防呆。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) { handleDefaultCandidateFontsByLangIdentifier = false shouldAlwaysUseShiftKeyAccommodation = false diff --git a/Source/WindowControllers/ctlPrefWindow.swift b/Source/WindowControllers/ctlPrefWindow.swift index be3000e3..b3fc27f3 100644 --- a/Source/WindowControllers/ctlPrefWindow.swift +++ b/Source/WindowControllers/ctlPrefWindow.swift @@ -336,7 +336,7 @@ extension ctlPrefWindow: NSToolbarDelegate { } 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]