feat: add minimise to tray option

This commit is contained in:
Paul Makles 2022-05-10 12:26:57 +01:00
parent cca97f9bb9
commit e1e3e55dc7
3 changed files with 14 additions and 2 deletions

View file

@ -1,5 +1,4 @@
{ {
"editor.defaultFormatter": "esbenp.prettier-vscode", "editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true, "editor.formatOnSave": true
"compile-hero.disable-compile-files-on-did-save-code": true
} }

1
src/globals.d.ts vendored
View file

@ -4,6 +4,7 @@ type NativeConfig = {
frame: boolean; frame: boolean;
build: Build; build: Build;
discordRPC: boolean; discordRPC: boolean;
minimiseToTray: boolean;
hardwareAcceleration: boolean; hardwareAcceleration: boolean;
}; };

View file

@ -44,6 +44,18 @@ export function Native() {
Start with computer Start with computer
</Checkbox> </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 <Checkbox
checked={config.discordRPC} checked={config.discordRPC}
onChange={(discordRPC) => { onChange={(discordRPC) => {