mirror of
https://github.com/0PandaDEV/Qopy.git
synced 2025-06-16 11:57:38 +02:00
refactor: integrate keyboard functionality and clean up event handling
This commit is contained in:
parent
b2395e19a9
commit
b6269c60c9
5 changed files with 55 additions and 27 deletions
4
app.vue
4
app.vue
|
@ -9,13 +9,13 @@ import { listen } from "@tauri-apps/api/event";
|
|||
import { app, window } from "@tauri-apps/api";
|
||||
import { disable, enable } from "@tauri-apps/plugin-autostart";
|
||||
import { onMounted } from "vue";
|
||||
import { keyboard } from "wrdu-keyboard";
|
||||
|
||||
const keyboard = useKeyboard();
|
||||
const { $settings } = useNuxtApp();
|
||||
keyboard.init()
|
||||
|
||||
onMounted(async () => {
|
||||
await listen("settings", async () => {
|
||||
keyboard.clear();
|
||||
await navigateTo("/settings");
|
||||
await app.show();
|
||||
await window.getCurrentWindow().show();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue