Set AllKeymapsCount only once when applying a configuration
This commit is contained in:
@@ -43,5 +43,8 @@ parser_error_t ParseConfig(config_buffer_t *buffer) {
|
||||
return errorCode;
|
||||
}
|
||||
}
|
||||
if (!ParserRunDry) {
|
||||
AllKeymapsCount = keymapCount;
|
||||
}
|
||||
return ParserError_Success;
|
||||
}
|
||||
|
||||
@@ -197,7 +197,6 @@ parser_error_t ParseKeymap(config_buffer_t *buffer, uint8_t keymapIdx, uint8_t k
|
||||
return ParserError_InvalidLayerCount;
|
||||
}
|
||||
if (!ParserRunDry) {
|
||||
AllKeymapsCount = keymapCount;
|
||||
AllKeymaps[keymapIdx].abbreviation = abbreviation;
|
||||
AllKeymaps[keymapIdx].abbreviationLen = abbreviationLen;
|
||||
AllKeymaps[keymapIdx].offset = offset;
|
||||
|
||||
Reference in New Issue
Block a user