fix: broken ui download count when leftpanel close (#5089)

This commit is contained in:
Faisal Amir 2025-05-25 01:10:07 +07:00 committed by GitHub
parent a29152aa76
commit 0df92d8bda
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -119,7 +119,7 @@ export function DownloadManagement() {
return (
<>
{(downloadCount > 0 ||
(!updateState.isDownloading && updateState.downloadProgress > 0)) && (
(updateState.isDownloading && updateState.downloadProgress > 0)) && (
<Popover open={isPopoverOpen} onOpenChange={setIsPopoverOpen}>
<PopoverTrigger asChild>
{isLeftPanelOpen ? (
@ -142,7 +142,7 @@ export function DownloadManagement() {
className="text-main-view-fg/50 -mt-1"
size={20}
/>
<div className="bg-primary font-bold size-5 rounded-full absolute -top-2 -right-1 flex items-center justify-center text-primary-fg">
<div className="bg-primary font-bold size-5 rounded-full absolute -top-4 -right-4 flex items-center justify-center text-primary-fg">
{downloadCount}
</div>
</div>