rind: Only expand library playlist paths when added

Otherwise genres fill the list and make everything look cluttered.

Signed-off-by: Anna Schumaker <Anna@NoWheyCreamery.com>
This commit is contained in:
Anna Schumaker 2019-03-29 15:39:47 -04:00
parent 85f07fea36
commit d77b1a9c09
1 changed files with 1 additions and 0 deletions

View File

@ -120,6 +120,7 @@ class ManagerModel(GObject.GObject, Gtk.TreeModel):
parent = self.iter_parent(iter)
if self.iter_n_children(parent) == 1:
self.row_has_child_toggled(self.get_path(parent), parent)
if isinstance(plist, curds.LibraryPlaylist):
Treeview.expand_to_path(self.get_path(parent))
def on_selection_changed(self, selection):