mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-25 17:25:16 +03:00
Presets: fix for loading broken BATCH configs - 'Save anyway' button did not work
This commit is contained in:
parent
ae2ef20ce2
commit
d74b675b69
1 changed files with 6 additions and 1 deletions
|
@ -123,7 +123,12 @@ TABS.presets.setupMenuButtons = function() {
|
||||||
});
|
});
|
||||||
this._domButtonaSaveAnyway.on("click", () => {
|
this._domButtonaSaveAnyway.on("click", () => {
|
||||||
this._domDialogCliErrors.close();
|
this._domDialogCliErrors.close();
|
||||||
this.cliEngine.sendLine(CliEngine.s_commandSave);
|
this.cliEngine.sendLine(CliEngine.s_commandSave, null, () => {
|
||||||
|
// In case of batch CLI commands errors Firmware requeires extra "save" comand for CLI safety.
|
||||||
|
// No need for this safety in presets as preset tab already detected errors and showed them to the user.
|
||||||
|
// At this point user clicked "save anyway".
|
||||||
|
this.cliEngine.sendLine(CliEngine.s_commandSave);
|
||||||
|
});
|
||||||
this.disconnectCliMakeSure();
|
this.disconnectCliMakeSure();
|
||||||
});
|
});
|
||||||
this._domButtonSaveBackup.on("click", () => this.onSaveConfigClick());
|
this._domButtonSaveBackup.on("click", () => this.onSaveConfigClick());
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue