mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-23 16:25:22 +03:00
Fixed backup / restore with profile switching.
This commit is contained in:
parent
528ac69090
commit
e6d12761e2
2 changed files with 16 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue