mirror of
https://github.com/Suwayomi/Suwayomi-Server.git
synced 2026-07-04 11:24:35 -05:00
Always update the last webUI update check timestamp (#614)
This commit is contained in:
@@ -171,7 +171,9 @@ object WebInterfaceManager {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private fun checkForUpdate() {
|
private fun checkForUpdate() {
|
||||||
|
preferences.putLong(lastWebUIUpdateCheckKey, System.currentTimeMillis())
|
||||||
val localVersion = getLocalVersion(applicationDirs.webUIRoot)
|
val localVersion = getLocalVersion(applicationDirs.webUIRoot)
|
||||||
|
|
||||||
if (!isUpdateAvailable(localVersion)) {
|
if (!isUpdateAvailable(localVersion)) {
|
||||||
logger.debug { "checkForUpdate(${serverConfig.webUIFlavor}, $localVersion): local version is the latest one" }
|
logger.debug { "checkForUpdate(${serverConfig.webUIFlavor}, $localVersion): local version is the latest one" }
|
||||||
return
|
return
|
||||||
@@ -179,7 +181,6 @@ object WebInterfaceManager {
|
|||||||
|
|
||||||
logger.info { "checkForUpdate(${serverConfig.webUIFlavor}, $localVersion): An update is available, starting download..." }
|
logger.info { "checkForUpdate(${serverConfig.webUIFlavor}, $localVersion): An update is available, starting download..." }
|
||||||
downloadLatestCompatibleVersion()
|
downloadLatestCompatibleVersion()
|
||||||
preferences.putLong(lastWebUIUpdateCheckKey, System.currentTimeMillis())
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun getDownloadUrlFor(version: String): String {
|
private fun getDownloadUrlFor(version: String): String {
|
||||||
|
|||||||
Reference in New Issue
Block a user