mirror of
https://github.com/mihonapp/mihon.git
synced 2024-11-07 03:07:25 +01:00
Fix extension setting isn't accesiable when it has update (#7537)
Closes #7516
This commit is contained in:
parent
bdbe1c4d0f
commit
83e193f1ab
@ -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 -> {
|
is Extension.Installed -> onOpenExtension(it)
|
||||||
if (it.hasUpdate) {
|
|
||||||
onUpdateExtension(it)
|
|
||||||
} else {
|
|
||||||
onOpenExtension(it)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
is Extension.Untrusted -> { trustState = it }
|
is Extension.Untrusted -> { trustState = it }
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user