Skip to content

Commit

Permalink
- Fix wrong Tor Browser version (#649)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobi823 committed Nov 27, 2024
1 parent 2bd7af4 commit e73c870
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,7 @@ object TorBrowser : AppBase() {

override suspend fun getInstalledVersion(packageManager: PackageManager): de.marmaro.krt.ffupdater.app.entity.Version? {
val rawVersionText = super.getInstalledVersion(packageManager)?.versionText ?: return null
val newVersionText = rawVersionText.split(" ")
.last()
.removePrefix("(")
.removeSuffix(")")
val newVersionText = rawVersionText.split(" ").first()
return de.marmaro.krt.ffupdater.app.entity.Version(newVersionText)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,7 @@ object TorBrowserAlpha : AppBase() {

override suspend fun getInstalledVersion(packageManager: PackageManager): de.marmaro.krt.ffupdater.app.entity.Version? {
val rawVersionText = super.getInstalledVersion(packageManager)?.versionText ?: return null
val newVersionText = rawVersionText.split(" ")
.first()
val newVersionText = rawVersionText.split(" ").first()
return de.marmaro.krt.ffupdater.app.entity.Version(newVersionText)
}

Expand Down

0 comments on commit e73c870

Please sign in to comment.