Verify a new configuration before applying it

This commit is contained in:
Eric Tang
2017-08-07 11:19:41 -07:00
parent f817a5cbb9
commit 97336455b5
4 changed files with 21 additions and 8 deletions

View File

@@ -193,7 +193,7 @@ parser_error_t ParseKeymap(config_buffer_t *buffer) {;
if (layerCount != LAYER_COUNT) {
return ParserError_InvalidLayerCount;
}
isDryRun = !isDefault;
isDryRun = buffer == &NewUserConfigBuffer || !isDefault;
if (!isDryRun) {
LedDisplay_SetText(abbreviationLen, abbreviation);
}