mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-16 04:45:20 +03:00
Expert mode toggle refactoring
This commit is contained in:
parent
4583ad4a0d
commit
b63c02673a
3 changed files with 16 additions and 7 deletions
|
@ -515,8 +515,8 @@ function startProcess() {
|
|||
$(expertModeCheckbox).prop('checked', true);
|
||||
}
|
||||
|
||||
$(expertModeCheckbox).change(function () {
|
||||
const checked = $(this).is(':checked');
|
||||
$(expertModeCheckbox).on("change", () => {
|
||||
const checked = $(expertModeCheckbox).is(':checked');
|
||||
checkSetupAnalytics(function (analyticsService) {
|
||||
analyticsService.setDimension(analyticsService.DIMENSIONS.CONFIGURATOR_EXPERT_MODE, checked ? 'On' : 'Off');
|
||||
});
|
||||
|
@ -525,8 +525,12 @@ function startProcess() {
|
|||
updateTabList(FC.FEATURE_CONFIG.features);
|
||||
}
|
||||
|
||||
TuningSliders.setExpertMode(checked);
|
||||
}).change();
|
||||
if (GUI.active_tab) {
|
||||
TABS[GUI.active_tab]?.expertModeChanged?.(checked);
|
||||
}
|
||||
});
|
||||
|
||||
$(expertModeCheckbox).trigger("change");
|
||||
});
|
||||
|
||||
ConfigStorage.get('cliAutoComplete', function (result) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue