mirror of
https://gh.catmak.name/https://github.com/mihomo-party-org/mihomo-party
synced 2025-12-27 05:00:30 +08:00
disable traffic by default
This commit is contained in:
parent
b6dc50b7ae
commit
7078f4a5ab
@ -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'),
|
||||
|
||||
@ -39,7 +39,7 @@ const GeneralConfig: React.FC = () => {
|
||||
const {
|
||||
silentStart = false,
|
||||
useDockIcon = true,
|
||||
showTraffic = true,
|
||||
showTraffic = false,
|
||||
proxyInTray = true,
|
||||
disableTray = false,
|
||||
showFloatingWindow: showFloating = false,
|
||||
|
||||
@ -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')
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user