Skip to content

Commit

Permalink
manager: don't show mode for non gki
Browse files Browse the repository at this point in the history
  • Loading branch information
tiann committed Mar 19, 2024
1 parent 1fc1ffe commit 2b0d199
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,9 @@ fun HomeScreen(navigator: DestinationsNavigator) {
if (isManager) install()
}
val ksuVersion = if (isManager) Natives.version else null
val lkmMode =
ksuVersion?.let {
if (it >= Natives.MINIMAL_SUPPORTED_KERNEL_LKM) Natives.isLkmMode else null
}
val lkmMode = ksuVersion?.let {
if (it >= Natives.MINIMAL_SUPPORTED_KERNEL_LKM && kernelVersion.isGKI()) Natives.isLkmMode else null
}

StatusCard(kernelVersion, ksuVersion, lkmMode) {
navigator.navigate(InstallScreenDestination)
Expand Down

0 comments on commit 2b0d199

Please sign in to comment.