This commit is contained in:
josc146 2023-05-20 14:55:18 +08:00
parent 361d7a5619
commit 358705625a

View File

@ -13,6 +13,7 @@ export const Downloads: FC = observer(() => {
const {t} = useTranslation();
const finishedDownloads = commonStore.downloadList.filter((status) => status.done).length;
useEffect(() => {
if (finishedDownloads > 0)
refreshLocalModels({models: commonStore.modelSourceList}, false);
console.log('finishedDownloads:', finishedDownloads);
}, [finishedDownloads]);