diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-11-22 13:11:48 +0100 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-11-22 13:11:48 +0100 |
commit | a6de55740355b3bc4d7c869626d22da5b3854416 (patch) | |
tree | fe28873ec430dc4be8beedd9c2738aaf2a1943b7 /src/main/java/at/hannibal2/skyhanni/features/misc | |
parent | 5c9cbdba458638ae962ccf92e750ebdcea718478 (diff) | |
download | skyhanni-a6de55740355b3bc4d7c869626d22da5b3854416.tar.gz skyhanni-a6de55740355b3bc4d7c869626d22da5b3854416.tar.bz2 skyhanni-a6de55740355b3bc4d7c869626d22da5b3854416.zip |
reverted some private functions and other misc cleanup changes
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features/misc')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/misc/update/UpdateManager.kt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/misc/update/UpdateManager.kt b/src/main/java/at/hannibal2/skyhanni/features/misc/update/UpdateManager.kt index c6e50e4ee..2a35519e9 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/misc/update/UpdateManager.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/misc/update/UpdateManager.kt @@ -62,7 +62,7 @@ object UpdateManager { } } - private fun isBetaRelease(): Boolean { + fun isCurrentlyBeta(): Boolean { return getCurrentVersion().contains("beta", ignoreCase = true) } @@ -82,7 +82,7 @@ object UpdateManager { } logger.log("Starting update check") var updateStream = config.updateStream.get() - if (updateStream == About.UpdateStream.RELEASES && isBetaRelease()) { + if (updateStream == About.UpdateStream.RELEASES && isCurrentlyBeta()) { updateStream = About.UpdateStream.BETA } activePromise = context.checkUpdate(updateStream.stream) |