disable traffic by default

This commit is contained in:
pompurin404 2024-10-18 21:57:59 +08:00
parent b6dc50b7ae
commit 7078f4a5ab
No known key found for this signature in database
3 changed files with 3 additions and 3 deletions

View File

@ -20,7 +20,7 @@ export async function startMonitor(detached = false): Promise<void> {
}
}
await stopMonitor()
const { showTraffic = true } = await getAppConfig()
const { showTraffic = false } = await getAppConfig()
if (!showTraffic) return
child = spawn(path.join(resourcesFilesDir(), 'TrafficMonitor/TrafficMonitor.exe'), [], {
cwd: path.join(resourcesFilesDir(), 'TrafficMonitor'),

View File

@ -39,7 +39,7 @@ const GeneralConfig: React.FC = () => {
const {
silentStart = false,
useDockIcon = true,
showTraffic = true,
showTraffic = false,
proxyInTray = true,
disableTray = false,
showFloatingWindow: showFloating = false,

View File

@ -19,7 +19,7 @@ let drawing = false
const ConnCard: React.FC = () => {
const { theme = 'system', systemTheme = 'dark' } = useTheme()
const { appConfig } = useAppConfig()
const { showTraffic, connectionCardStatus = 'col-span-2', customTheme } = appConfig || {}
const { showTraffic = false, connectionCardStatus = 'col-span-2', customTheme } = appConfig || {}
const location = useLocation()
const match = location.pathname.includes('/connections')