remove tray settings for mac
This commit is contained in:
parent
a95f7f8fbd
commit
af835b208d
1 changed files with 5 additions and 1 deletions
|
@ -18,7 +18,7 @@ export default function SettingsUi() {
|
||||||
const { autostart } = VesktopNative;
|
const { autostart } = VesktopNative;
|
||||||
const [autoStartEnabled, setAutoStartEnabled] = useState(autostart.isEnabled());
|
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],
|
["tray", "Tray Icon", "Add a tray icon for Vesktop", true],
|
||||||
[
|
[
|
||||||
"minimizeToTray",
|
"minimizeToTray",
|
||||||
|
@ -41,6 +41,10 @@ export default function SettingsUi() {
|
||||||
["staticTitle", "Static Title", 'Makes the window title "Vencord" instead of changing to the current page']
|
["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 (
|
return (
|
||||||
<Forms.FormSection>
|
<Forms.FormSection>
|
||||||
<Text variant="heading-lg/semibold" style={{ color: "var(--header-primary)" }} tag="h2">
|
<Text variant="heading-lg/semibold" style={{ color: "var(--header-primary)" }} tag="h2">
|
||||||
|
|
Reference in a new issue