mirror of
https://github.com/meshtastic/Meshtastic-Apple.git
synced 2026-04-20 22:13:56 +00:00
Remove positions when removing fixed position
This commit is contained in:
parent
016a3b748f
commit
cd0ee611eb
1 changed files with 3 additions and 0 deletions
|
|
@ -280,6 +280,9 @@ struct PositionConfig: View {
|
|||
print("Set Position Failed")
|
||||
}
|
||||
print("Remove a fixed position here")
|
||||
let mutablePositions = node?.positions?.mutableCopy() as? NSMutableOrderedSet
|
||||
mutablePositions?.removeAllObjects()
|
||||
node?.positions = mutablePositions
|
||||
node?.positionConfig?.fixedPosition = false
|
||||
do {
|
||||
try context.save()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue