mirror of
https://github.com/farcasclaudiu/openclaw.git
synced 2026-06-28 21:01:43 +03:00
feat(macos): move camera setting to General
This commit is contained in:
@@ -9,7 +9,6 @@ struct DebugSettings: View {
|
||||
@AppStorage(modelCatalogReloadKey) private var modelCatalogReloadBump: Int = 0
|
||||
@AppStorage(iconOverrideKey) private var iconOverrideRaw: String = IconOverrideSelection.system.rawValue
|
||||
@AppStorage(canvasEnabledKey) private var canvasEnabled: Bool = true
|
||||
@AppStorage(cameraEnabledKey) private var cameraEnabled: Bool = false
|
||||
@AppStorage(deepLinkAgentEnabledKey) private var deepLinkAgentEnabled: Bool = false
|
||||
@State private var modelsCount: Int?
|
||||
@State private var modelsLoading = false
|
||||
@@ -49,7 +48,6 @@ struct DebugSettings: View {
|
||||
self.pathsSection
|
||||
self.quickActionsSection
|
||||
self.canvasSection
|
||||
self.cameraSection
|
||||
self.experimentsSection
|
||||
|
||||
Spacer(minLength: 0)
|
||||
@@ -573,20 +571,6 @@ struct DebugSettings: View {
|
||||
}
|
||||
}
|
||||
|
||||
private var cameraSection: some View {
|
||||
GroupBox("Camera") {
|
||||
VStack(alignment: .leading, spacing: 10) {
|
||||
Toggle("Allow Camera (agent)", isOn: self.$cameraEnabled)
|
||||
.toggleStyle(.checkbox)
|
||||
.help("When off, camera requests return “Camera disabled by user”.")
|
||||
|
||||
Text("Allows Clawdis to capture a photo or short video via the built-in camera.")
|
||||
.font(.caption)
|
||||
.foregroundStyle(.secondary)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private var experimentsSection: some View {
|
||||
GroupBox("Experiments") {
|
||||
Grid(alignment: .leadingFirstTextBaseline, horizontalSpacing: 14, verticalSpacing: 10) {
|
||||
|
||||
Reference in New Issue
Block a user