diff --git a/src-tauri/capabilities/default.json b/src-tauri/capabilities/default.json index 2e5338d..290df73 100644 --- a/src-tauri/capabilities/default.json +++ b/src-tauri/capabilities/default.json @@ -8,6 +8,8 @@ "permissions": [ "core:default", "opener:default", - "os:default" + "os:default", + "core:window:default", + "core:window:allow-start-dragging" ] } \ No newline at end of file diff --git a/src/componets/Sidebar.tsx b/src/componets/Sidebar.tsx index d529053..8f4e51c 100644 --- a/src/componets/Sidebar.tsx +++ b/src/componets/Sidebar.tsx @@ -6,6 +6,7 @@ import { faCog, faServer } from '@fortawesome/free-solid-svg-icons' import { faDiscord } from '@fortawesome/free-brands-svg-icons' import { useState } from 'react' import { platform } from '@tauri-apps/plugin-os' +import { getCurrentWindow } from '@tauri-apps/api/window' const Sidebar = () => { const [rot, setRot] = useState(0) @@ -13,6 +14,23 @@ const Sidebar = () => { return (