From 1d1483a9dc18d7acf4267727893a281b99645c02 Mon Sep 17 00:00:00 2001 From: Florrie Date: Thu, 17 Oct 2019 12:08:42 -0300 Subject: Don't include non-tracks in total track count --- ui.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ui.js') diff --git a/ui.js b/ui.js index 9a61ec4..03337f5 100644 --- a/ui.js +++ b/ui.js @@ -13,7 +13,7 @@ const { const { cloneGrouplike, - countTotalItems, + countTotalTracks, flattenGrouplike, getItemPath, getNameWithoutTrackNumber, @@ -882,7 +882,7 @@ class AppElement extends FocusElement { canControlQueue && {label: 'Remove from queue', action: () => this.unqueue(item)} ] } else { - const numTracks = countTotalItems(item) + const numTracks = countTotalTracks(item) const { string: durationString } = this.backend.getDuration(item) items = [ // A label that just shows some brief information about the item. -- cgit 1.3.0-6-gf8a5