mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-02-08 14:52:36 -05:00
fix: check for admin key before enabling managed mode
This commit is contained in:
@@ -109,7 +109,7 @@ fun SecurityConfigItemList(
|
||||
item {
|
||||
SwitchPreference(title = "Managed Mode",
|
||||
checked = securityInput.isManaged,
|
||||
enabled = enabled,
|
||||
enabled = enabled && securityInput.adminKeyCount > 0,
|
||||
onCheckedChange = {
|
||||
securityInput = securityInput.copy { isManaged = it }
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user