Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions SwiftBuddy/SwiftBuddy/Views/SettingsView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -702,7 +702,7 @@ struct SettingsView: View {
}
.pickerStyle(.segmented)
.tint(SwiftBuddyTheme.accent)
.onChange(of: localColorScheme) { newValue in
.onChange(of: localColorScheme) { _, newValue in
// Defer the @Published write to avoid the view update crash
Task { @MainActor in
appearance.preference = newValue
Expand Down Expand Up @@ -917,9 +917,9 @@ struct SettingsView: View {
port: server.port,
parallel: server.startupConfiguration.parallelSlots,
apiKeySet: !server.startupConfiguration.apiKey.isEmpty,
modelId: {
modelId: { () -> String? in
if case .ready(let id) = engine.state { return id }
return nil
return engine.loadedModelId
}()
)
}
Expand Down
Loading