feat(modpacks): check discovered pack updates

This commit is contained in:
objz committed 2026-08-04 21:32:25 +02:00
1 parent f049904466
commit 695ba5a758
25 files changed
+191 -38

No files matched your search

+10
View File
@@ -368,6 +368,16 @@ pub struct ProviderRegistry {
providers: Vec<Box<dyn ContentProvider>>,
}
pub(crate) fn has_newer_compatible_version(
versions: &[VersionInfo],
installed_version_id: &str,
) -> bool {
versions
.iter()
.position(|version| version.id == installed_version_id)
.is_some_and(|position| position > 0)
}
impl ProviderRegistry {
pub(crate) fn new(providers: Vec<Box<dyn ContentProvider>>) -> Self {
Self { providers }