Only show the download status when the model actually needs downloading

This commit is contained in:
Dan Stillman 2026-07-20 23:09:38 -04:00
parent 80d9c05648
commit 92853d6d90

View file

@ -1381,7 +1381,7 @@ Zotero.Embeddings.Indexing = new function () {
try {
await Zotero.Embeddings.initDB();
await _ensureIndexMatchesModel();
_phase = 'downloading';
_phase = (await Zotero.Embeddings.isDownloaded()) ? 'indexing' : 'downloading';
_emitProgress();
await Zotero.Embeddings.Indexing.refreshStatus();
await Zotero.Embeddings.preloadModel();