fix(linux): 屏蔽 Less Computer / Claude 控制台入口 (#967)
Less Computer 功能仅 macOS 开放(后端只在 macOS 注册热键/创建窗口), Linux 设置页不再渲染 CodingAgentSection 和 ClaudeConsoleSection, 避免用户看到无法使用的功能。 - CodingAgentSection: 原仅隐藏 Windows,现同时隐藏 Linux - tabs.tsx AdvancedTab: os !== 'win' 改为 os === 'mac'
This commit is contained in:
1 parent
68573df66e
commit
cdbd3746b0
2 files changed
+6
-3
No files matched your search
@@ -89,7 +89,9 @@ export function CodingAgentSection() {
|
||||
}
|
||||
}
|
||||
|
||||
if (os === 'win') return null
|
||||
// Less Computer 仅 macOS 开放:后端只在 macOS 注册热键/创建窗口,
|
||||
// Windows / Linux 不渲染配置入口,避免用户看到无法使用的功能。
|
||||
if (os === 'win' || os === 'linux') return null
|
||||
|
||||
if (!prefs) {
|
||||
return (
|
||||
|
||||
@@ -115,8 +115,9 @@ export function AdvancedTab() {
|
||||
|
||||
return (
|
||||
<>
|
||||
{showDesktopAdvanced && os !== 'win' && <CodingAgentSection />}
|
||||
{showDesktopAdvanced && os !== 'win' && <ClaudeConsoleSection />}
|
||||
{/* Less Computer / Claude 控制台仅 macOS 开放:后端只在 macOS 注册热键/创建窗口 */}
|
||||
{showDesktopAdvanced && os === 'mac' && <CodingAgentSection />}
|
||||
{showDesktopAdvanced && os === 'mac' && <ClaudeConsoleSection />}
|
||||
<MultimodalPipelineSection />
|
||||
{showDebugTools && <DebugToolsSection />}
|
||||
</>
|
||||
|
||||
Reference in new issue
Block a user