🐛 安装时进度条改为不确定状态

This commit is contained in:
柚子
2025-03-07 15:54:10 +08:00
parent 5f8c7b701a
commit a2d4eb3b56

View File

@@ -27,7 +27,8 @@ const DownloadCard: Component<{ download: DownloadTask }> = (props) => {
</div>
<div class="flex items-center gap-2">
<Progress
value={['installing', 'installed'].includes(props.download.status) ? 100 : props.download.progress}
value={props.download.status === 'installed' ? 100 : props.download.progress}
indeterminate={props.download.status === 'installing'}
class="flex-1"
/>
<span class="text-sm text-muted-foreground">