fix: silence view warnings

This commit is contained in:
Peter Steinberger
2025-12-25 03:23:31 +01:00
parent 9fb74cb58a
commit 2442186a31
5 changed files with 5 additions and 5 deletions

View File

@@ -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)

View File

@@ -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"

View File

@@ -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",

View File

@@ -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)

View File

@@ -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