mirror of
https://github.com/SoongNoonien/mpdevil.git
synced 2023-08-10 21:12:44 +03:00
fixed ArtistView heading
This commit is contained in:
parent
21dee05834
commit
d7fe24fb8d
@ -435,7 +435,7 @@ class ArtistView(Gtk.ScrolledWindow):
|
|||||||
|
|
||||||
#Old Name Column
|
#Old Name Column
|
||||||
renderer_text = Gtk.CellRendererText()
|
renderer_text = Gtk.CellRendererText()
|
||||||
self.column_name = Gtk.TreeViewColumn(_("Album Artist"), renderer_text, text=0)
|
self.column_name = Gtk.TreeViewColumn("", renderer_text, text=0)
|
||||||
self.column_name.set_sizing(Gtk.TreeViewColumnSizing.AUTOSIZE)
|
self.column_name.set_sizing(Gtk.TreeViewColumnSizing.AUTOSIZE)
|
||||||
self.column_name.set_property("resizable", False)
|
self.column_name.set_property("resizable", False)
|
||||||
self.column_name.set_sort_column_id(0)
|
self.column_name.set_sort_column_id(0)
|
||||||
@ -454,6 +454,10 @@ class ArtistView(Gtk.ScrolledWindow):
|
|||||||
def refresh(self, *args):
|
def refresh(self, *args):
|
||||||
self.selection.set_mode(Gtk.SelectionMode.NONE)
|
self.selection.set_mode(Gtk.SelectionMode.NONE)
|
||||||
self.clear()
|
self.clear()
|
||||||
|
if self.settings.get_artist_type() == "albumartist":
|
||||||
|
self.column_name.set_title(_("Album Artist"))
|
||||||
|
else:
|
||||||
|
self.column_name.set_title(_("Artist"))
|
||||||
genre=self.genre_select.get_value()
|
genre=self.genre_select.get_value()
|
||||||
if genre == None:
|
if genre == None:
|
||||||
artists=self.client.list(self.settings.get_artist_type())
|
artists=self.client.list(self.settings.get_artist_type())
|
||||||
|
Loading…
Reference in New Issue
Block a user