remove tray settings for mac

This commit is contained in:
lumap 2023-07-27 02:40:36 +02:00
parent a95f7f8fbd
commit af835b208d

View file

@ -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 (
<Forms.FormSection>
<Text variant="heading-lg/semibold" style={{ color: "var(--header-primary)" }} tag="h2">