A free, open source, and extensible speech-to-text application that works completely offline.
fix(model-card): prevent reselection of currently active model (#1662)
Erwann Mest497653014c32
diff --git a/src/components/onboarding/ModelCard.tsx b/src/components/onboarding/ModelCard.tsxindex 7da33206..9eb23c28 100644--- a/src/components/onboarding/ModelCard.tsx+++ b/src/components/onboarding/ModelCard.tsx@@ -96,8 +96,9 @@ const ModelCard: React.FC<ModelCardProps> = ({(state) => state.settings?.debug_mode ?? false,);const isFeatured = variant === "featured";- const isClickable =- status === "available" || status === "active" || status === "downloadable";+ // The active model is already loaded — re-selecting it just reloads it for no+ // gain, so it is deliberately not clickable.+ const isClickable = status === "available" || status === "downloadable";// Get translated model name and descriptionconst displayName = getTranslatedModelName(model, t);