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:
Kristian Myram
2026-10-30 08:43:32 +01:00
co-authored by Claude Sonnet 5.5
parent ac8765bf67
commit e30db42493
3 changed files with 30 additions and 0 deletions
+6
View File
@@ -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,