From af835b208d4d857b31f4430b5c97fb4b64124526 Mon Sep 17 00:00:00 2001 From: lumap Date: Thu, 27 Jul 2023 02:40:36 +0200 Subject: [PATCH] remove tray settings for mac --- src/renderer/components/Settings.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/renderer/components/Settings.tsx b/src/renderer/components/Settings.tsx index dcb2a648..8c6e3359 100644 --- a/src/renderer/components/Settings.tsx +++ b/src/renderer/components/Settings.tsx @@ -18,7 +18,7 @@ export default function SettingsUi() { const { autostart } = VesktopNative; const [autoStartEnabled, setAutoStartEnabled] = useState(autostart.isEnabled()); - const switches: [keyof typeof Settings, string, string, boolean?, (() => boolean)?][] = [ + let switches: [keyof typeof Settings, string, string, boolean?, (() => boolean)?][] = [ ["tray", "Tray Icon", "Add a tray icon for Vesktop", true], [ "minimizeToTray", @@ -41,6 +41,10 @@ export default function SettingsUi() { ["staticTitle", "Static Title", 'Makes the window title "Vencord" instead of changing to the current page'] ]; + if (navigator.platform.startsWith("Mac")) { + switches = switches.splice(2); + } + return (