mirror of
https://github.com/0PandaDEV/Qopy.git
synced 2025-06-16 20:07:33 +02:00
chore: system
This commit is contained in:
parent
aa928f7094
commit
97c023df91
78 changed files with 15225 additions and 15225 deletions
|
@ -1,12 +1,12 @@
|
|||
import { app, window } from "@tauri-apps/api";
|
||||
|
||||
export function useAppControl() {
|
||||
const hideApp = async (): Promise<void> => {
|
||||
await app.hide();
|
||||
await window.getCurrentWindow().hide();
|
||||
};
|
||||
|
||||
return {
|
||||
hideApp
|
||||
};
|
||||
import { app, window } from "@tauri-apps/api";
|
||||
|
||||
export function useAppControl() {
|
||||
const hideApp = async (): Promise<void> => {
|
||||
await app.hide();
|
||||
await window.getCurrentWindow().hide();
|
||||
};
|
||||
|
||||
return {
|
||||
hideApp
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue