From 354968fba764cc845568ea4b2521dc1ec79beb18 Mon Sep 17 00:00:00 2001 From: schroda <50052685+schroda@users.noreply.github.com> Date: Mon, 2 Oct 2023 23:46:46 +0200 Subject: [PATCH] Update version "name" and "code" when installing external extension (#698) In case a newer version of the extension is installed and the extension gets manually downgraded, the version in db is still the one of the newer version. This will prevent detection of available updates, since it won't get recognized, that an older version is currently installed. --- .../kotlin/suwayomi/tachidesk/manga/impl/extension/Extension.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server/src/main/kotlin/suwayomi/tachidesk/manga/impl/extension/Extension.kt b/server/src/main/kotlin/suwayomi/tachidesk/manga/impl/extension/Extension.kt index 3ca50a4c..e8f154ce 100644 --- a/server/src/main/kotlin/suwayomi/tachidesk/manga/impl/extension/Extension.kt +++ b/server/src/main/kotlin/suwayomi/tachidesk/manga/impl/extension/Extension.kt @@ -181,6 +181,8 @@ object Extension { it[this.apkName] = apkName it[this.isInstalled] = true it[this.classFQName] = className + it[versionName] = packageInfo.versionName + it[versionCode] = packageInfo.versionCode } val extensionId =