Skip to content

Commit

Permalink
Merge pull request #687 from Stremio/fix/state-update-on-library-changed
Browse files Browse the repository at this point in the history
Trigger state update on LibraryChanged
  • Loading branch information
tymmesyde authored May 31, 2024
2 parents 4a0b991 + 1df199c commit 0582dc0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/models/catalog_with_filters.rs
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,7 @@ where
&self.catalog,
&ctx.profile,
),
Msg::Internal(Internal::LibraryChanged(_)) => Effects::none(),
_ => Effects::none().unchanged(),
}
}
Expand Down
1 change: 1 addition & 0 deletions src/models/catalogs_with_extra.rs
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ impl<E: Env + 'static> UpdateWithCtx<E> for CatalogsWithExtra {
Msg::Internal(Internal::ProfileChanged) => {
catalogs_update::<E>(&mut self.catalogs, &self.selected, None, &ctx.profile)
}
Msg::Internal(Internal::LibraryChanged(_)) => Effects::none(),
_ => Effects::none().unchanged(),
}
}
Expand Down

0 comments on commit 0582dc0

Please sign in to comment.