Skip to content

Commit 6bd7c78

Browse files
authored
fix: update input methods instead of status area on im list changes (#2)
1 parent 9ee2112 commit 6bd7c78

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

package.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,16 @@
1111
"build": "vite build && vue-tsc -d --emitDeclarationOnly"
1212
},
1313
"devDependencies": {
14-
"@antfu/eslint-config": "^3.12.1",
15-
"@vitejs/plugin-vue": "^5.2.1",
16-
"eslint": "^9.17.0",
14+
"@antfu/eslint-config": "^4.12.0",
15+
"@vitejs/plugin-vue": "^5.2.3",
16+
"eslint": "^9.24.0",
1717
"fcitx5-js": "file:cache/fcitx5-js.tgz",
18-
"naive-ui": "^2.40.4",
19-
"typescript": "5.7.2",
20-
"vite": "^6.0.6",
18+
"naive-ui": "^2.41.0",
19+
"typescript": "5.8.3",
20+
"vite": "^6.2.6",
2121
"vooks": "^0.2.12",
2222
"vue": "^3.5.13",
23-
"vue-i18n": "10",
24-
"vue-tsc": "^2.2.0"
23+
"vue-i18n": "11",
24+
"vue-tsc": "^2.2.8"
2525
}
2626
}

src/InputMethodConfig.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ function labelWithMinus(option: MenuOption) {
4848
onClick: (e: MouseEvent) => {
4949
const ims = props.inputMethods.filter(({ name }) => name !== option.key).map(({ name }) => name)
5050
window.fcitx.setInputMethods(ims)
51-
window.fcitx.updateStatusArea()
51+
window.fcitx.updateInputMethods()
5252
e.stopPropagation() // Don't fallback to selecting menu item.
5353
if (selectedInputMethod.value === option.key) {
5454
selectedInputMethod.value = ims[0]
@@ -123,7 +123,7 @@ const imsToAdd = ref<string[]>([])
123123
124124
function add() {
125125
window.fcitx.setInputMethods(props.inputMethods.map(({ name }) => name).concat(imsToAdd.value))
126-
window.fcitx.updateStatusArea()
126+
window.fcitx.updateInputMethods()
127127
imsToAdd.value = []
128128
}
129129

src/PluginManager.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ async function onUpload(files: UploadFileInfo[]) {
2929
message.error(e.message)
3030
continue
3131
}
32-
window.fcitx.updateStatusArea()
32+
window.fcitx.updateInputMethods()
3333
installedPlugins.value = getInstalledPlugins()
3434
message.success(`Installed ${name}`)
3535
}

0 commit comments

Comments
 (0)