feat: add redirect after saving keybind in settings.vue

This commit is contained in:
PandaDEV 2025-01-02 17:10:09 +10:00
parent 0c28a5b0db
commit c872490a95
No known key found for this signature in database
GPG key ID: 13EFF9BAF70EE75C

View file

@ -131,6 +131,7 @@ const onKeyDown = (event: KeyboardEvent) => {
const saveKeybind = async () => { const saveKeybind = async () => {
if (keybind.value.length > 0) { if (keybind.value.length > 0) {
await invoke("save_keybind", { keybind: keybind.value }); await invoke("save_keybind", { keybind: keybind.value });
router.push("/");
} else { } else {
showEmptyKeybindError.value = true; showEmptyKeybindError.value = true;
} }