fix: silence view warnings
This commit is contained in:
@@ -99,7 +99,7 @@ extension CronSettings {
|
|||||||
store.selectedJobId = job.id
|
store.selectedJobId = job.id
|
||||||
store.runEntries = [run]
|
store.runEntries = [run]
|
||||||
|
|
||||||
var view = CronSettings(store: store)
|
let view = CronSettings(store: store)
|
||||||
_ = view.body
|
_ = view.body
|
||||||
_ = view.jobRow(job)
|
_ = view.jobRow(job)
|
||||||
_ = view.jobContextMenu(job)
|
_ = view.jobContextMenu(job)
|
||||||
|
|||||||
@@ -878,7 +878,7 @@ struct DebugSettings_Previews: PreviewProvider {
|
|||||||
@MainActor
|
@MainActor
|
||||||
extension DebugSettings {
|
extension DebugSettings {
|
||||||
static func exerciseForTesting() async {
|
static func exerciseForTesting() async {
|
||||||
var view = DebugSettings()
|
let view = DebugSettings()
|
||||||
view.modelsCount = 3
|
view.modelsCount = 3
|
||||||
view.modelsLoading = false
|
view.modelsLoading = false
|
||||||
view.modelsError = "Failed to load models"
|
view.modelsError = "Failed to load models"
|
||||||
|
|||||||
@@ -662,7 +662,7 @@ extension GeneralSettings {
|
|||||||
state.remoteProjectRoot = "/tmp/clawdis"
|
state.remoteProjectRoot = "/tmp/clawdis"
|
||||||
state.remoteCliPath = "/tmp/clawdis"
|
state.remoteCliPath = "/tmp/clawdis"
|
||||||
|
|
||||||
var view = GeneralSettings(state: state)
|
let view = GeneralSettings(state: state)
|
||||||
view.gatewayStatus = GatewayEnvironmentStatus(
|
view.gatewayStatus = GatewayEnvironmentStatus(
|
||||||
kind: .ok,
|
kind: .ok,
|
||||||
nodeVersion: "1.0.0",
|
nodeVersion: "1.0.0",
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ extension OnboardingView {
|
|||||||
isLocal: false)
|
isLocal: false)
|
||||||
discovery.gateways = [gateway]
|
discovery.gateways = [gateway]
|
||||||
|
|
||||||
var view = OnboardingView(
|
let view = OnboardingView(
|
||||||
state: state,
|
state: state,
|
||||||
permissionMonitor: PermissionMonitor.shared,
|
permissionMonitor: PermissionMonitor.shared,
|
||||||
discoveryModel: discovery)
|
discoveryModel: discovery)
|
||||||
|
|||||||
@@ -519,7 +519,7 @@ extension VoiceWakeSettings {
|
|||||||
state.voicePushToTalkEnabled = true
|
state.voicePushToTalkEnabled = true
|
||||||
state.swabbleTriggerWords = ["Claude", "Hey"]
|
state.swabbleTriggerWords = ["Claude", "Hey"]
|
||||||
|
|
||||||
var view = VoiceWakeSettings(state: state)
|
let view = VoiceWakeSettings(state: state)
|
||||||
view.availableMics = [AudioInputDevice(uid: "mic-1", name: "Built-in")]
|
view.availableMics = [AudioInputDevice(uid: "mic-1", name: "Built-in")]
|
||||||
view.availableLocales = [Locale(identifier: "en_US")]
|
view.availableLocales = [Locale(identifier: "en_US")]
|
||||||
view.meterLevel = 0.42
|
view.meterLevel = 0.42
|
||||||
|
|||||||
Reference in New Issue
Block a user