From 6f6fcc5a2359fe66226525cf14d24d95002f650b Mon Sep 17 00:00:00 2001 From: Erica Z Date: Sat, 16 Nov 2024 14:19:38 +0100 Subject: [PATCH] clear playing cover art when shuffling --- src/ui/play_queue.rs | 1 - src/ui/window.rs | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ui/play_queue.rs b/src/ui/play_queue.rs index 782966d..df9f5f1 100644 --- a/src/ui/play_queue.rs +++ b/src/ui/play_queue.rs @@ -103,7 +103,6 @@ mod imp { } } - glib::wrapper! { pub struct PlayQueue(ObjectSubclass) @extends adw::Bin, gtk::Widget, diff --git a/src/ui/window.rs b/src/ui/window.rs index bda5881..1d3cb07 100644 --- a/src/ui/window.rs +++ b/src/ui/window.rs @@ -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::); self.mpv.command(["stop"]).unwrap(); self.playlist_model.remove_all();