From ceb7e591642ad9976753cae730128514d288f2f6 Mon Sep 17 00:00:00 2001 From: iamdoubz <> Date: Mon, 6 Jul 2026 07:21:50 -0500 Subject: [PATCH] feat(commands): expose directml.applicable in hardware_status (P2) --- src-tauri/src/commands.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src-tauri/src/commands.rs b/src-tauri/src/commands.rs index e645b71..84d1304 100644 --- a/src-tauri/src/commands.rs +++ b/src-tauri/src/commands.rs @@ -857,8 +857,10 @@ pub async fn hardware_status() -> WaResult { "modelInstalled": npu_model_installed(), }, // DirectML GPU package (P2): shares the ONNX model with the NPU path; - // only the runtime differs. Drives a future Settings ▸ Hardware indicator. + // only the runtime differs. `applicable` gates the Settings ▸ Hardware + // card so it only shows when DirectML would actually help this build. "directml": { + "applicable": crate::hardware::directml_would_help(), "runtimeReady": crate::paths::directml_runtime_ready(), "modelInstalled": npu_model_installed(), },