forked from abner/for-legacy-web
feat: add minimise to tray option
This commit is contained in:
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) => {
|
||||
|
||||
Reference in New Issue
Block a user