reordered AlbumDialog window title

This commit is contained in:
Martin Wagner 2020-10-18 19:33:01 +02:00
parent 9e3f117041
commit a9069a2950

View File

@ -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)