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:
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:
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).
The string
error-unsupported-keymapis 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
The version number is hard-coded to
1in 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
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).