Only download cover image when flag enabled (#780)
* Only download cover image when flag enabled * fixup! Only download cover image when flag enabled
This commit is contained in:
@@ -274,7 +274,11 @@ impl Queue {
|
||||
let notification_id = self.notification_id.clone();
|
||||
std::thread::spawn({
|
||||
let track_name = track.to_string();
|
||||
let cover_url = track.cover_url();
|
||||
let cover_url = if cfg!(feature = "cover") {
|
||||
track.cover_url()
|
||||
} else {
|
||||
None
|
||||
};
|
||||
move || send_notification(&track_name, cover_url, notification_id)
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user