mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-11-08 11:02:08 +08:00
feat: unify TUN mode availability checks across components
This commit is contained in:
@@ -189,11 +189,11 @@ const ProxyControlSwitches = ({
|
||||
onInfoClick={() => tunRef.current?.open()}
|
||||
onToggle={handleTunToggle}
|
||||
onError={onError}
|
||||
disabled={!isServiceMode}
|
||||
disabled={!isTunModeAvailable}
|
||||
highlight={!!enable_tun_mode}
|
||||
extraIcons={
|
||||
<>
|
||||
{!isServiceMode && (
|
||||
{!isTunModeAvailable && (
|
||||
<TooltipIcon
|
||||
title={t("TUN requires Service Mode or Admin Mode")}
|
||||
icon={WarningRounded}
|
||||
|
||||
Reference in New Issue
Block a user