|
@@ -168,13 +168,7 @@ fun ExtensionContent(
|
|
onClickItem = {
|
|
onClickItem = {
|
|
when (it) {
|
|
when (it) {
|
|
is Extension.Available -> onInstallExtension(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 }
|
|
is Extension.Untrusted -> { trustState = it }
|
|
}
|
|
}
|
|
},
|
|
},
|