From a9069a295005d147b84394f33ea55daeff6f185f Mon Sep 17 00:00:00 2001 From: Martin Wagner Date: Sun, 18 Oct 2020 19:33:01 +0200 Subject: [PATCH] reordered AlbumDialog window title --- bin/mpdevil | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/bin/mpdevil b/bin/mpdevil index f74197c..f555611 100755 --- a/bin/mpdevil +++ b/bin/mpdevil @@ -1869,10 +1869,18 @@ class AlbumDialog(Gtk.Dialog): # also used by 'MainCover' # title duration=ClientHelper.calc_display_length(songs) - if year == "": - self.set_title("{} - {} ({})".format(album_artist, album, duration)) + if use_csd: + if year == "": + self.set_title(album) + else: + self.set_title("{} ({})".format(album, year)) + header_bar=self.get_header_bar() + header_bar.set_subtitle("{} ({})".format(album_artist, duration)) else: - self.set_title("{} - {} ({}) ({})".format(album_artist, album, year, duration)) + if year == "": + self.set_title("{} - {} ({})".format(album, album_artist, duration)) + else: + self.set_title("{} ({}) - {} ({})".format(album, year, album_artist, duration)) # store # (track, title (artist), duration, file)