mirror of
https://gh.catmak.name/https://github.com/mihomo-party-org/mihomo-party
synced 2025-12-27 13:10: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()
|
await stopMonitor()
|
||||||
const { showTraffic = true } = await getAppConfig()
|
const { showTraffic = false } = await getAppConfig()
|
||||||
if (!showTraffic) return
|
if (!showTraffic) return
|
||||||
child = spawn(path.join(resourcesFilesDir(), 'TrafficMonitor/TrafficMonitor.exe'), [], {
|
child = spawn(path.join(resourcesFilesDir(), 'TrafficMonitor/TrafficMonitor.exe'), [], {
|
||||||
cwd: path.join(resourcesFilesDir(), 'TrafficMonitor'),
|
cwd: path.join(resourcesFilesDir(), 'TrafficMonitor'),
|
||||||
|
|||||||
@ -39,7 +39,7 @@ const GeneralConfig: React.FC = () => {
|
|||||||
const {
|
const {
|
||||||
silentStart = false,
|
silentStart = false,
|
||||||
useDockIcon = true,
|
useDockIcon = true,
|
||||||
showTraffic = true,
|
showTraffic = false,
|
||||||
proxyInTray = true,
|
proxyInTray = true,
|
||||||
disableTray = false,
|
disableTray = false,
|
||||||
showFloatingWindow: showFloating = false,
|
showFloatingWindow: showFloating = false,
|
||||||
|
|||||||
@ -19,7 +19,7 @@ let drawing = false
|
|||||||
const ConnCard: React.FC = () => {
|
const ConnCard: React.FC = () => {
|
||||||
const { theme = 'system', systemTheme = 'dark' } = useTheme()
|
const { theme = 'system', systemTheme = 'dark' } = useTheme()
|
||||||
const { appConfig } = useAppConfig()
|
const { appConfig } = useAppConfig()
|
||||||
const { showTraffic, connectionCardStatus = 'col-span-2', customTheme } = appConfig || {}
|
const { showTraffic = false, connectionCardStatus = 'col-span-2', customTheme } = appConfig || {}
|
||||||
const location = useLocation()
|
const location = useLocation()
|
||||||
const match = location.pathname.includes('/connections')
|
const match = location.pathname.includes('/connections')
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user