Skip to content

Commit

Permalink
disable traffic by default
Browse files Browse the repository at this point in the history
  • Loading branch information
pompurin404 committed Oct 18, 2024
1 parent b6dc50b commit 7078f4a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/main/resolve/trafficMonitor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/src/components/settings/general-config.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const GeneralConfig: React.FC = () => {
const {
silentStart = false,
useDockIcon = true,
showTraffic = true,
showTraffic = false,
proxyInTray = true,
disableTray = false,
showFloatingWindow: showFloating = false,
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/src/components/sider/conn-card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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')

Expand Down

0 comments on commit 7078f4a

Please sign in to comment.