Hide download queue size in nav bar while empty

This commit is contained in:
schroda
2025-05-24 22:50:23 +02:00
parent ecca993c54
commit 640dcc4393

View File

@@ -78,6 +78,13 @@ const NAVIGATION_BAR_DESKTOP_ITEMS = [
const isPaused = downloadStatus?.state === DownloaderState.Stopped;
const count = downloadStatus?.queue.length ?? 0;
if (!count) {
return {
count,
title: '',
};
}
return {
count,
title: t(isPaused ? 'download.queue.info.paused' : 'download.queue.info.remaining', { count }),