diff --git a/src/components/settings/WindowSettings.tsx b/src/components/settings/WindowSettings.tsx index cc2cf0dfa..a2597aed9 100644 --- a/src/components/settings/WindowSettings.tsx +++ b/src/components/settings/WindowSettings.tsx @@ -2,6 +2,7 @@ import { useTranslation } from "react-i18next"; import type { SettingsFormState } from "@/hooks/useSettings"; import { AppWindow, MonitorUp, Power, EyeOff } from "lucide-react"; import { ToggleRow } from "@/components/ui/toggle-row"; +import { AnimatePresence, motion } from "framer-motion"; interface WindowSettingsProps { settings: SettingsFormState; @@ -27,13 +28,25 @@ export function WindowSettings({ settings, onChange }: WindowSettingsProps) { onCheckedChange={(value) => onChange({ launchOnStartup: value })} /> - } - title={t("settings.silentStartup")} - description={t("settings.silentStartupDescription")} - checked={!!settings.silentStartup} - onCheckedChange={(value) => onChange({ silentStartup: value })} - /> + + {settings.launchOnStartup && ( + + } + title={t("settings.silentStartup")} + description={t("settings.silentStartupDescription")} + checked={!!settings.silentStartup} + onCheckedChange={(value) => onChange({ silentStartup: value })} + /> + + )} + }