-
Notifications
You must be signed in to change notification settings - Fork 49
Open
Description
The string error-unsupported-keymap is presumably supposed to be shown when importing a keyboard map created with a newer version of the program. However, the version number check currently occurs in the export function instead of the import function:
keyboard-configurator/src/keyboard.rs
Line 451 in f81b9b1
| if keymap.version != 1 { |
The version number is hard-coded to 1 in the export function, which means that "if" statement's checking a const and will never be triggered:
keyboard-configurator/backend/src/board.rs
Line 270 in f81b9b1
| version: 1, |
Modifying an exported JSON file so it has some other version number and then importing it does not show the error message (when it presumably should).
Metadata
Metadata
Assignees
Labels
No labels