Merge pull request #176 from mikeller/fix_backup_profile_switching
Fixed backup / restore with profile switching.10.3.x-maintenance v1.7.0
commit
da1f4a3b60
|
@ -890,3 +890,9 @@ TABS.pid_tuning.checkUpdateProfile = function (updateRateProfile) {
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
TABS.pid_tuning.setUpdating = function (isUpdating) {
|
||||||
|
var self = this;
|
||||||
|
|
||||||
|
self.updating = isUpdating;
|
||||||
|
}
|
||||||
|
|
|
@ -140,7 +140,11 @@ TABS.setup.initialize = function (callback) {
|
||||||
if ($(this).hasClass('disabled')) {
|
if ($(this).hasClass('disabled')) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
TABS.pid_tuning.setUpdating(true);
|
||||||
configuration_backup(function () {
|
configuration_backup(function () {
|
||||||
|
TABS.pid_tuning.setUpdating(false);
|
||||||
|
|
||||||
GUI.log(chrome.i18n.getMessage('initialSetupBackupSuccess'));
|
GUI.log(chrome.i18n.getMessage('initialSetupBackupSuccess'));
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
@ -149,11 +153,15 @@ TABS.setup.initialize = function (callback) {
|
||||||
if ($(this).hasClass('disabled')) {
|
if ($(this).hasClass('disabled')) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
configuration_restore(function () {
|
|
||||||
GUI.log(chrome.i18n.getMessage('initialSetupRestoreSuccess'));
|
|
||||||
|
|
||||||
|
TABS.pid_tuning.setUpdating(true);
|
||||||
|
configuration_restore(function () {
|
||||||
// get latest settings
|
// get latest settings
|
||||||
TABS.setup.initialize();
|
TABS.setup.initialize();
|
||||||
|
|
||||||
|
TABS.pid_tuning.setUpdating(false);
|
||||||
|
|
||||||
|
GUI.log(chrome.i18n.getMessage('initialSetupRestoreSuccess'));
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue