clear playing cover art when shuffling

This commit is contained in:
Erica Z 2024-11-16 14:19:38 +01:00
parent bedb98933f
commit 6f6fcc5a23
2 changed files with 1 additions and 1 deletions

View file

@ -103,7 +103,6 @@ mod imp {
}
}
glib::wrapper! {
pub struct PlayQueue(ObjectSubclass<imp::PlayQueue>)
@extends adw::Bin, gtk::Widget,

View file

@ -385,6 +385,7 @@ mod imp {
#[template_callback]
async fn shuffle_all(&self) {
self.obj().set_can_click_shuffle_all(false);
self.obj().set_playing_cover_art(None::<gdk::Paintable>);
self.mpv.command(["stop"]).unwrap();
self.playlist_model.remove_all();