playlist: Clear selection after iterating

Signed-off-by: Anna Schumaker <Anna@NoWheyCreamery.com>
This commit is contained in:
Anna Schumaker 2021-12-09 17:49:22 -05:00
parent c7b205e404
commit 6c81981570
1 changed files with 1 additions and 0 deletions

View File

@ -41,6 +41,7 @@ class PlaylistView(Gtk.ColumnView):
selection = model.get_selection()
for n in range(selection.get_size()):
yield model.get_item(selection.get_nth(n))
model.unselect_all()
def clear_selection(self):
self.get_model().unselect_all()