Skip to content

Version being checked on export instead of import #254

@jacobgkau

Description

@jacobgkau

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:

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:

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions