diff --git a/.vscode/settings.json b/.vscode/settings.json
index a0484054..324a9612 100644
--- a/.vscode/settings.json
+++ b/.vscode/settings.json
@@ -1,5 +1,4 @@
{
"editor.defaultFormatter": "esbenp.prettier-vscode",
- "editor.formatOnSave": true,
- "compile-hero.disable-compile-files-on-did-save-code": true
+ "editor.formatOnSave": true
}
diff --git a/src/globals.d.ts b/src/globals.d.ts
index 637dfb32..c18bc92b 100644
--- a/src/globals.d.ts
+++ b/src/globals.d.ts
@@ -4,6 +4,7 @@ type NativeConfig = {
frame: boolean;
build: Build;
discordRPC: boolean;
+ minimiseToTray: boolean;
hardwareAcceleration: boolean;
};
diff --git a/src/pages/settings/panes/Native.tsx b/src/pages/settings/panes/Native.tsx
index 09083f1d..ebd6463a 100644
--- a/src/pages/settings/panes/Native.tsx
+++ b/src/pages/settings/panes/Native.tsx
@@ -44,6 +44,18 @@ export function Native() {
Start with computer
+ {
+ window.native.set("minimiseToTray", minimiseToTray);
+ setConfig({
+ ...config,
+ minimiseToTray,
+ });
+ }}
+ description="Instead of closing, Revolt will hide in your tray.">
+ Minimise to Tray
+
{