mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-11-05 11:35:08 +01:00
Check ext lib version when checking for updates (#8740)
This commit is contained in:
parent
9dd9e741f3
commit
7608cb0da3
@ -87,8 +87,9 @@ internal class ExtensionGithubApi {
|
||||
for (installedExt in installedExtensions) {
|
||||
val pkgName = installedExt.pkgName
|
||||
val availableExt = extensions.find { it.pkgName == pkgName } ?: continue
|
||||
|
||||
val hasUpdate = installedExt.isUnofficial.not() && (availableExt.versionCode > installedExt.versionCode)
|
||||
val hasUpdatedVer = availableExt.versionCode > installedExt.versionCode
|
||||
val hasUpdatedLib = availableExt.libVersion > installedExt.libVersion
|
||||
val hasUpdate = installedExt.isUnofficial.not() && (hasUpdatedVer || hasUpdatedLib)
|
||||
if (hasUpdate) {
|
||||
extensionsWithUpdate.add(installedExt)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user