Fix local flashing messaging (#3102)

10.9-maintenance
haslinghuis 2022-12-01 04:44:12 +01:00 committed by GitHub
parent f471330f76
commit b7d0bd5df1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 1 deletions

View File

@ -730,7 +730,15 @@ firmware_flasher.initialize = function (callback) {
let config = cleanUnifiedConfigFile(e.target.result);
if (config !== null) {
setBoardConfig(config, file.name);
flashingMessageLocal(file.name);
if (self.isConfigLocal && !self.parsed_hex) {
self.flashingMessage(i18n.getMessage('firmwareFlasherLoadedConfig'), self.FLASH_MESSAGE_TYPES.NEUTRAL);
}
if ((self.isConfigLocal && self.parsed_hex && !self.localFirmwareLoaded) || self.localFirmwareLoaded) {
self.enableFlashing(true);
self.flashingMessage(i18n.getMessage('firmwareFlasherFirmwareLocalLoaded', self.parsed_hex.bytes_total), self.FLASH_MESSAGE_TYPES.NEUTRAL);
}
}
}
}