mirror of
https://github.com/revoltchat/revite.git
synced 2024-11-21 06:30:58 -05:00
feat: add minimise to tray option
This commit is contained in:
parent
cca97f9bb9
commit
e1e3e55dc7
3 changed files with 14 additions and 2 deletions
3
.vscode/settings.json
vendored
3
.vscode/settings.json
vendored
|
@ -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
src/globals.d.ts
vendored
1
src/globals.d.ts
vendored
|
@ -4,6 +4,7 @@ type NativeConfig = {
|
|||
frame: boolean;
|
||||
build: Build;
|
||||
discordRPC: boolean;
|
||||
minimiseToTray: boolean;
|
||||
hardwareAcceleration: boolean;
|
||||
};
|
||||
|
||||
|
|
|
@ -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) => {
|
||||
|
|
Loading…
Reference in a new issue