mirror of
https://github.com/0PandaDEV/Qopy.git
synced 2025-04-22 05:34:04 +02:00
12 lines
No EOL
231 B
TypeScript
12 lines
No EOL
231 B
TypeScript
import { app, window } from "@tauri-apps/api";
|
|
|
|
export function useAppControl() {
|
|
const hideApp = async (): Promise<void> => {
|
|
await app.hide();
|
|
await window.getCurrentWindow().hide();
|
|
};
|
|
|
|
return {
|
|
hideApp
|
|
};
|
|
}
|