setting a non-standard keymap in settings causes it to incorrectly write all keymap info to device-settings.toml
Describe the bug
see tittle
How to reproduce
see title.
Example code
No response
Relevant output
No response
Platform
macOS
This is expected behavior; non-default saving is based on struct fields, and there is only one struct field for the whole key map, as it is just a map.
It should just save the one KeyMap field, not the KeyMaps:
KeyMap = 'MacEmacs'
[KeyMaps]
[[KeyMaps.Value]]
...
KeyMaps is Set = false
This happens when you change anything in device settings, so the issue is that it can not correctly detect whether the KeyMap and KeyMaps are non-default.
this just bit me in the latest update..
I fixed this in f293200860f11ace9e60a6eeb98f01a3ee0dff54.