Skip to content

Commit

Permalink
Fix a bug in enabling input source
Browse files Browse the repository at this point in the history
  • Loading branch information
LEOYoon-Tsaw committed May 19, 2024
1 parent f3aea6e commit 5c4f85a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sources/InputSource.swift
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ final class SquirrelInstaller {
return
}
for (mode, inputSource) in getInputSource(modes: modes) {
if let enabled = getBool(for: inputSource, key: kTISPropertyInputSourceIsEnabled), enabled {
if let enabled = getBool(for: inputSource, key: kTISPropertyInputSourceIsEnabled), !enabled {
let error = TISEnableInputSource(inputSource)
print("Enable \(error == noErr ? "succeeds" : "fails") for input source: \(mode.rawValue)");
}
Expand Down

0 comments on commit 5c4f85a

Please sign in to comment.