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

@@ -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) => {