diff --git a/manager/app/src/main/java/com/rifsxd/ksunext/ui/screen/Settings.kt b/manager/app/src/main/java/com/rifsxd/ksunext/ui/screen/Settings.kt index eebbac70..7b1212e2 100644 --- a/manager/app/src/main/java/com/rifsxd/ksunext/ui/screen/Settings.kt +++ b/manager/app/src/main/java/com/rifsxd/ksunext/ui/screen/Settings.kt @@ -178,8 +178,7 @@ fun SettingScreen(navigator: DestinationsNavigator) { icon = Icons.Filled.RemoveModerator, title = stringResource(id = R.string.settings_disable_su), summary = stringResource(id = R.string.settings_disable_su_summary), - checked = isSuDisabled, - enabled = !isSuDisabled // we can't re-enable su if it's disabled. + checked = isSuDisabled ) { checked -> val shouldEnable = !checked if (Natives.setSuEnabled(shouldEnable)) {