Skip to content

Commit

Permalink
feat: add minimise to tray option
Browse files Browse the repository at this point in the history
  • Loading branch information
insertish committed May 10, 2022
1 parent cca97f9 commit e1e3e55
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
3 changes: 1 addition & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -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
}
1 change: 1 addition & 0 deletions src/globals.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ type NativeConfig = {
frame: boolean;
build: Build;
discordRPC: boolean;
minimiseToTray: boolean;
hardwareAcceleration: boolean;
};

Expand Down
12 changes: 12 additions & 0 deletions src/pages/settings/panes/Native.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,18 @@ export function Native() {
Start with computer
</Checkbox>

<Checkbox
checked={config.minimiseToTray}
onChange={(minimiseToTray) => {
window.native.set("minimiseToTray", minimiseToTray);
setConfig({
...config,
minimiseToTray,
});
}}
description="Instead of closing, Revolt will hide in your tray.">
Minimise to Tray
</Checkbox>
<Checkbox
checked={config.discordRPC}
onChange={(discordRPC) => {
Expand Down

0 comments on commit e1e3e55

Please sign in to comment.