1
0
Fork 0
mirror of https://github.com/betaflight/betaflight-configurator.git synced 2025-07-22 15:55:33 +03:00

Auto merged - #2553 at Mon, 16 Aug 2021 15:17:11 GMT

Fix Expert Mode Switch
This commit is contained in:
J Blackman 2021-08-17 01:17:11 +10:00 committed by GitHub
commit bfa9a38fef
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View file

@ -501,12 +501,12 @@ function startProcess() {
});
ConfigStorage.get('permanentExpertMode', function (result) {
const experModeCheckbox = 'input[name="expertModeCheckbox"]';
const expertModeCheckbox = 'input[name="expertModeCheckbox"]';
if (result.permanentExpertMode) {
$(experModeCheckbox).prop('checked', true);
$(expertModeCheckbox).prop('checked', true);
}
$(experModeCheckbox).change(function () {
$(expertModeCheckbox).change(function () {
const checked = $(this).is(':checked');
checkSetupAnalytics(function (analyticsService) {
analyticsService.setDimension(analyticsService.DIMENSIONS.CONFIGURATOR_EXPERT_MODE, checked ? 'On' : 'Off');

View file

@ -376,7 +376,7 @@ firmware_flasher.initialize = function (callback) {
function showOrHideBuildTypeSelect() {
const expertModeChecked = $(this).is(':checked');
globalExpertMode_e.prop('checked', expertModeChecked);
globalExpertMode_e.prop('checked', expertModeChecked).trigger('change');
if (expertModeChecked) {
buildTypesToShow = buildTypes.concat(ciBuildsTypes);
buildBuildTypeOptionsList();