|
|
|
@ -105,14 +105,13 @@ var defaultsDialog = (function () {
|
|
|
|
|
$container.hide();
|
|
|
|
|
|
|
|
|
|
wizardSaveFramework.persist(privateScope.wizardSettings, function () {
|
|
|
|
|
//FIXME this has to be enabled when the settings are saved
|
|
|
|
|
// mspHelper.saveToEeprom(function () {
|
|
|
|
|
// //noinspection JSUnresolvedVariable
|
|
|
|
|
// GUI.log(i18n.getMessage('configurationEepromSaved'));
|
|
|
|
|
// if (selectedDefaultPreset.reboot) {
|
|
|
|
|
// privateScope.reboot();
|
|
|
|
|
// }
|
|
|
|
|
// });
|
|
|
|
|
mspHelper.saveToEeprom(function () {
|
|
|
|
|
//noinspection JSUnresolvedVariable
|
|
|
|
|
GUI.log(i18n.getMessage('configurationEepromSaved'));
|
|
|
|
|
if (selectedDefaultPreset.reboot) {
|
|
|
|
|
privateScope.reboot();
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
} else {
|
|
|
|
|
const $content = $container.find('.defaults-dialog__wizard');
|
|
|
|
@ -370,10 +369,9 @@ var defaultsDialog = (function () {
|
|
|
|
|
|
|
|
|
|
privateScope.onInitSettingReturned = function (promise) {
|
|
|
|
|
|
|
|
|
|
//FIXME: This is a workaround to avoid applying defaults when the settings are already applied
|
|
|
|
|
// if (promise.value > 0) {
|
|
|
|
|
// return; //Defaults were applied, we can just ignore
|
|
|
|
|
// }
|
|
|
|
|
if (promise.value > 0) {
|
|
|
|
|
return; //Defaults were applied, we can just ignore
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
privateScope.render();
|
|
|
|
|
$container.show();
|
|
|
|
|