diff --git a/src/models/player.rs b/src/models/player.rs index 4c87a7851..9c8a18cc2 100644 --- a/src/models/player.rs +++ b/src/models/player.rs @@ -141,7 +141,7 @@ impl UpdateWithCtx for Player { .as_ref() .map(|meta_request| &meta_request.path.id) { - item_state_update(&mut self.library_item, &self.next_video) + item_state_update(&mut self.library_item, &self.next_video, &self.selected) } else { Effects::none().unchanged() }; @@ -306,7 +306,7 @@ impl UpdateWithCtx for Player { ); let item_state_update_effects = - item_state_update(&mut self.library_item, &self.next_video); + item_state_update(&mut self.library_item, &self.next_video, &self.selected); let push_to_library_effects = match &self.library_item { Some(library_item) => Effects::msg(Msg::Internal(Internal::UpdateLibraryItem( library_item.to_owned(), @@ -861,7 +861,15 @@ fn push_to_library( fn item_state_update( library_item: &mut Option, next_video: &Option