mirror of
https://github.com/storytold/effectcraft.git
synced 2026-11-01 14:08:38 -06:00
S2.66: Settings suggests the SAM 2 size that suits this computer
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 5.5
parent
ac8765bf67
commit
e30db42493
@@ -420,7 +420,13 @@ fn list(s: &mut Session, task: Task) -> Result<Value> {
|
||||
"active": st.active.is_none(),
|
||||
})];
|
||||
for m in seg::models(task) {
|
||||
#[cfg(not(target_arch = "wasm32"))]
|
||||
let (recommended, hint) = (effectcraft_sam2::mask::recommended().id == m.id, effectcraft_sam2::mask::hint(m.id));
|
||||
#[cfg(target_arch = "wasm32")]
|
||||
let (recommended, hint) = (false, None::<String>);
|
||||
v.push(json!({
|
||||
"recommended": recommended,
|
||||
"hint": hint,
|
||||
"id": m.id,
|
||||
"name": m.name,
|
||||
"description": m.description,
|
||||
|
||||
Reference in New Issue
Block a user