summaryrefslogtreecommitdiff
path: root/src/screens
diff options
context:
space:
mode:
authorLucas Zacharewicz <32346942+Babarbitz@users.noreply.github.com>2020-12-13 08:02:49 -0500
committerGitHub <noreply@github.com>2020-12-13 14:02:49 +0100
commit750e7ff59d961ea4606696cae320337b3d6e0b6a (patch)
treef743a84ea9fb10aed3713435bd9c1171a17e0b82 /src/screens
parentb72768d168b6e037836850f386348878737b6603 (diff)
Added option to hide album dates (#417)
* Added option to hide album dates * Fixed formating typo
Diffstat (limited to 'src/screens')
-rw-r--r--src/screens/media_library.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/screens/media_library.cpp b/src/screens/media_library.cpp
index 9ca0132d..19ce5af5 100644
--- a/src/screens/media_library.cpp
+++ b/src/screens/media_library.cpp
@@ -1116,7 +1116,8 @@ std::string AlbumToString(const AlbumEntry &ae)
result += " - ";
}
}
- if (Config.media_lib_primary_tag != MPD_TAG_DATE && !ae.entry().date().empty() && !isAlbumOnly)
+
+ if (Config.media_lib_primary_tag != MPD_TAG_DATE && !Config.media_lib_hide_album_dates && !ae.entry().date().empty())
result += "(" + ae.entry().date() + ") ";
result += ae.entry().album().empty() ? "<no album>" : ae.entry().album();
}