Skip to content

Commit

Permalink
fix: 修复有候选词怦吓输入 0 会导致crash 的问题;修复点击用户词库无法显示的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
qwertyyb committed Jan 2, 2025
1 parent 1f00d65 commit 15fccd6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Fire/FireInputController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ class FireInputController: IMKInputController {
if let pos = Int(string) {
if _originalString.count > 0 {
let index = pos - 1
if index < _candidates.count {
if index >= 0 && index < _candidates.count {
insertCandidate(_candidates[index])
} else {
_originalString += string
Expand Down
1 change: 1 addition & 0 deletions Fire/FireMenu.swift
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ extension FireInputController {
}
@objc func showUserDictPrefs(_ sender: Any!) {
NSApp.setActivationPolicy(.accessory)
NSApp.activate(ignoringOtherApps: true)
FirePreferencesController.shared.showPane("用户词库")
}
@objc func setAppicationMode(_ sender: Any!) {
Expand Down

0 comments on commit 15fccd6

Please sign in to comment.