Fix extension setting isn't accesiable when it has update (#7537)

Closes #7516
This commit is contained in:
AntsyLich 2022-07-16 00:44:59 +06:00 committed by GitHub
parent bdbe1c4d0f
commit 83e193f1ab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -168,13 +168,7 @@ fun ExtensionContent(
onClickItem = {
when (it) {
is Extension.Available -> onInstallExtension(it)
is Extension.Installed -> {
if (it.hasUpdate) {
onUpdateExtension(it)
} else {
onOpenExtension(it)
}
}
is Extension.Installed -> onOpenExtension(it)
is Extension.Untrusted -> { trustState = it }
}
},