mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-11-16 15:09:18 +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) {
|
for (installedExt in installedExtensions) {
|
||||||
val pkgName = installedExt.pkgName
|
val pkgName = installedExt.pkgName
|
||||||
val availableExt = extensions.find { it.pkgName == pkgName } ?: continue
|
val availableExt = extensions.find { it.pkgName == pkgName } ?: continue
|
||||||
|
val hasUpdatedVer = availableExt.versionCode > installedExt.versionCode
|
||||||
val hasUpdate = installedExt.isUnofficial.not() && (availableExt.versionCode > installedExt.versionCode)
|
val hasUpdatedLib = availableExt.libVersion > installedExt.libVersion
|
||||||
|
val hasUpdate = installedExt.isUnofficial.not() && (hasUpdatedVer || hasUpdatedLib)
|
||||||
if (hasUpdate) {
|
if (hasUpdate) {
|
||||||
extensionsWithUpdate.add(installedExt)
|
extensionsWithUpdate.add(installedExt)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user