Hide download queue size in nav bar while empty
This commit is contained in:
@@ -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 }),
|
||||
|
||||
Reference in New Issue
Block a user