aboutsummaryrefslogtreecommitdiff
path: root/src/components/VencordSettings/VencordTab.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/VencordSettings/VencordTab.tsx')
-rw-r--r--src/components/VencordSettings/VencordTab.tsx21
1 files changed, 13 insertions, 8 deletions
diff --git a/src/components/VencordSettings/VencordTab.tsx b/src/components/VencordSettings/VencordTab.tsx
index 9429cdd..5da4442 100644
--- a/src/components/VencordSettings/VencordTab.tsx
+++ b/src/components/VencordSettings/VencordTab.tsx
@@ -97,21 +97,26 @@ function VencordSettings() {
<Switch
value={settings.enableReactDevtools}
onChange={(v: boolean) => settings.enableReactDevtools = v}
- note="Requires a full restart">
+ note="Requires a full restart"
+ >
Enable React Developer Tools
</Switch>
<Switch
- value={settings.notifyAboutUpdates}
- onChange={(v: boolean) => settings.notifyAboutUpdates = v}
- note="Shows a toast on startup">
- Get notified about new updates
- </Switch>
- <Switch
value={settings.frameless}
onChange={(v: boolean) => settings.frameless = v}
- note="Requires a full restart">
+ note="Requires a full restart"
+ >
Disable the window frame
</Switch>
+ {navigator.platform.toLowerCase().startsWith("win") && (
+ <Switch
+ value={settings.winCtrlQ}
+ onChange={(v: boolean) => settings.winCtrlQ = v}
+ note="Requires a full restart"
+ >
+ Register Ctrl+Q as shortcut to close Discord (Alternative to Alt+F4)
+ </Switch>
+ )}
</React.Fragment>
)}