Always update the last webUI update check timestamp (#614)

This commit is contained in:
schroda
2023-07-26 02:33:46 +02:00
committed by GitHub
parent 50f988641b
commit 9e4c90f220
@@ -171,7 +171,9 @@ object WebInterfaceManager {
}
private fun checkForUpdate() {
preferences.putLong(lastWebUIUpdateCheckKey, System.currentTimeMillis())
val localVersion = getLocalVersion(applicationDirs.webUIRoot)
if (!isUpdateAvailable(localVersion)) {
logger.debug { "checkForUpdate(${serverConfig.webUIFlavor}, $localVersion): local version is the latest one" }
return
@@ -179,7 +181,6 @@ object WebInterfaceManager {
logger.info { "checkForUpdate(${serverConfig.webUIFlavor}, $localVersion): An update is available, starting download..." }
downloadLatestCompatibleVersion()
preferences.putLong(lastWebUIUpdateCheckKey, System.currentTimeMillis())
}
private fun getDownloadUrlFor(version: String): String {