mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
fix: check for admin key before enabling managed mode
This commit is contained in:
parent
414e0bb544
commit
1c91df4e67
1 changed files with 1 additions and 1 deletions
|
|
@ -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 }
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue