mirror of
https://github.com/revoltchat/revite.git
synced 2024-11-05 23:25:44 -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.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
1
src/globals.d.ts
vendored
|
@ -4,6 +4,7 @@ type NativeConfig = {
|
||||||
frame: boolean;
|
frame: boolean;
|
||||||
build: Build;
|
build: Build;
|
||||||
discordRPC: boolean;
|
discordRPC: boolean;
|
||||||
|
minimiseToTray: boolean;
|
||||||
hardwareAcceleration: boolean;
|
hardwareAcceleration: boolean;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -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) => {
|
||||||
|
|
Loading…
Reference in a new issue