1
0
mirror of https://github.com/fabianonline/telegram_backup.git synced 2024-12-25 14:25:35 +00:00

Disabled version check if version number contains a dash.

This commit is contained in:
Fabian Schlenz 2018-04-12 06:47:24 +02:00
parent 96d5b5c77b
commit df1c90578b

View File

@ -87,7 +87,11 @@ class CommandLineRunner(args: Array<String>) {
}
}
fun checkVersion(): Boolean {
fun checkVersion() {
if (Config.APP_APPVER.contains("-")) {
println("Your version ${Config.APP_APPVER} seems to be a development version. Version check is disabled.")
return
}
val v = Utils.getNewestVersion()
if (v != null && v.isNewer) {
println()
@ -105,8 +109,6 @@ class CommandLineRunner(args: Array<String>) {
println()
println()
TimeUnit.SECONDS.sleep(5)
return false
}
return true
}
}