Commit 0321d6f9 authored by Marinus Schraal's avatar Marinus Schraal

disclistboxwidget: Hide tracknumber if 0

parent e8eada08
......@@ -321,9 +321,12 @@ class DiscBox(Gtk.Box):
song_widget.itr = itr
song_widget.model = self._model
track_number = track.get_track_number()
if track_number == 0:
track_number = ""
song_widget.number = builder.get_object('num')
song_widget.number.set_markup(
'<span color=\'grey\'>{}</span>'.format(track.get_track_number()))
'<span color=\'grey\'>{}</span>'.format(track_number))
song_widget.number.set_no_show_all(True)
song_widget.title = builder.get_object('title')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment