Merge pull request #2700 from limonspb/presets-cli-error-fix

Presets FIX for loading broken BATCH configs - 'Save anyway' button did not work.
10.8-maintenance
haslinghuis 2021-12-21 00:13:15 +01:00 committed by GitHub
commit 51d0633ada
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 1 deletions

View File

@ -123,7 +123,12 @@ TABS.presets.setupMenuButtons = function() {
});
this._domButtonaSaveAnyway.on("click", () => {
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._domButtonSaveBackup.on("click", () => this.onSaveConfigClick());