Installer // Remove isMonterey() for now.

This commit is contained in:
ShikiSuen 2023-05-01 20:06:00 +08:00
parent 1e19a9e384
commit 9190e13aeb
2 changed files with 2 additions and 8 deletions

View File

@ -34,12 +34,6 @@ public let kTargetFullBinPartialPath = urlTargetFullBinPartial.path
public let kTranslocationRemovalTickInterval: TimeInterval = 0.5
public let kTranslocationRemovalDeadline: TimeInterval = 60.0
public var isMonterey: Bool {
guard #unavailable(macOS 13) else { return false }
guard #available(macOS 12, *) else { return false }
return true
}
@NSApplicationMain
@objc(AppDelegate)
class AppDelegate: NSWindowController, NSApplicationDelegate {

View File

@ -165,7 +165,7 @@ extension AppDelegate {
// 使使使
mainInputSourceEnabled = mainInputSourceEnabled || isActivated
}
if isActivated, !isMonterey { return }
if isActivated { return }
// WARNING: macOS 12 may return false positives, hence forced activation.
if neta.activate() {
NSLog("Input method enabled: \(imeIdentifier)")
@ -184,7 +184,7 @@ extension AppDelegate {
)
ntfPostInstall.addButton(withTitle: NSLocalizedString("OK", comment: ""))
} else {
if !mainInputSourceEnabled, !isMonterey {
if !mainInputSourceEnabled {
ntfPostInstall.messageText = NSLocalizedString("Warning", comment: "")
ntfPostInstall.informativeText = NSLocalizedString(
"Input method may not be fully enabled. Please enable it through System Preferences > Keyboard > Input Sources.",