Disable Orchestra Feature
Nucleic-Session: 921760EC-9063-4C8B-807B-DF166B271459 Co-authored-by: Nucleic <[email protected]>
This commit is contained in:
@@ -269,6 +269,9 @@ struct EffortMenu: View {
|
||||
return levels.contains(effort) ? effort : (levels.last ?? MobileEfforts.fallback)
|
||||
}
|
||||
|
||||
/// Once Orchestra is latched on for an existing chat, the ordinary levels can't be chosen.
|
||||
private var locked: Bool { lockWhenOrchestra && orchestraActive }
|
||||
|
||||
var body: some View {
|
||||
Menu {
|
||||
ForEach(levels, id: \.self) { level in
|
||||
@@ -276,6 +279,7 @@ struct EffortMenu: View {
|
||||
if effort == level { Label(display(level), systemImage: "checkmark") }
|
||||
else { Text(display(level)) }
|
||||
}
|
||||
.disabled(locked)
|
||||
}
|
||||
Divider()
|
||||
Button { effort = sentinel } label: {
|
||||
|
||||
Reference in New Issue
Block a user