manager: only show warning when installed.

This commit is contained in:
weishu
2023-06-03 15:30:51 +08:00
parent fc425cbba2
commit 581dff8a5f

View File

@@ -59,7 +59,7 @@ fun HomeScreen(navigator: DestinationsNavigator) {
val ksuVersion = if (isManager) Natives.version else null
StatusCard(kernelVersion, ksuVersion)
if (Natives.requireNewKernel()) {
if (isManager && Natives.requireNewKernel()) {
WarningCard(
stringResource(id = R.string.require_kernel_version).format(
ksuVersion,